From: Coleman Watts Date: Sat, 8 Feb 2014 19:16:36 +0000 (-0800) Subject: CRM-13929 - Improve calendar clear button X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=bcb4280c548c67591eccdaa9306b6f04c3762a98;p=civicrm-core.git CRM-13929 - Improve calendar clear button --- diff --git a/js/Common.js b/js/Common.js index 38ccd44369..fb59c47c19 100644 --- a/js/Common.js +++ b/js/Common.js @@ -955,6 +955,7 @@ CRM.validate = CRM.validate || { // Handle clear button for form elements .on('click', 'a.crm-clear-link', function() { $(this).css({visibility: 'hidden'}).siblings('.crm-form-radio:checked').prop('checked', false).change(); + $(this).siblings('input:text').val('').change(); return false; }) .on('change', 'input.crm-form-radio:checked', function() { diff --git a/templates/CRM/common/jcalendar.tpl b/templates/CRM/common/jcalendar.tpl index 3e21f188c3..88f9bc7304 100644 --- a/templates/CRM/common/jcalendar.tpl +++ b/templates/CRM/common/jcalendar.tpl @@ -64,7 +64,7 @@ {/if} {if $action neq 1028} - + {/if} {/strip}