Skip to content

Commit

Permalink
CRM-15689 - Fix js error in dateField initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
colemanw committed Dec 4, 2014
1 parent 2d57b0d commit 4466c37
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions templates/CRM/common/jcalendar.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@
{/literal}
// Workaround for possible duplicate ids in the dom - select by name instead of id and exclude already initialized widgets
var $dateElement = $('input[name={$displayDate}].dateplugin:not(.hasDatepicker)');
{literal}
if (!$dateElement.length) {
return;
}
{/literal}
{if $timeElement}
var $timeElement = $dateElement.siblings("#{$timeElement}");
var time_format = $timeElement.attr('timeFormat');
Expand Down

0 comments on commit 4466c37

Please sign in to comment.