I would like to have the option to remove the "Until event name" description below the countdown if necessary.

My initial thought for a solution was to simply add a checkbox in the configuration to toggle the description. However, #1293586: jQuery Countdown - link indicates the desire to make the description a link, so I think allowing for a customizable description would satisfy both user stories with an empty description allowing for the option of removing the description.

Comments

david.mccandless’s picture

I have created a patch to allow for a customizable description. The default is set to "Until @event_name" and setting it to an empty string will result in the description being removed. The event name can be referenced as a token with "@event_name". If there is a better way to do this, let me know.

This is my first patch, so if there is anything that I have not done correctly, please let me know. Also, if you would like to see anything changed, I'd be happy to do my best on that as well.

If you look at the change, I have added a space at the end of the description string. I did this because an empty string caused the layout to not have an outline on the countdown (at least in Bartik). If there are any suggestions on a better way to handle this, please let me know.

I will attach a patch and a screenshot of the configuration page that adds the description field. If there are suggestions as to the order of where this should appear, or the help text, I can change that as well.

scarver2’s picture

+1

blackice2999’s picture

Status: Active » Fixed

patch from #1 committed. Thanks.

david.mccandless’s picture

Awesome... glad I could help.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.