From bcb4280c548c67591eccdaa9306b6f04c3762a98 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sat, 8 Feb 2014 11:16:36 -0800 Subject: [PATCH] CRM-13929 - Improve calendar clear button --- js/Common.js | 1 + templates/CRM/common/jcalendar.tpl | 22 ++++++++++++---------- 2 files changed, 13 insertions(+), 10 deletions(-) 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} -- 2.25.1