From: Coleman Watts Date: Wed, 7 Oct 2015 18:41:55 +0000 (-0400) Subject: Fix template checkboxes in Print PDF form X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=14638f88786b39068a26b642fa525f1ac7bd912f;p=civicrm-core.git Fix template checkboxes in Print PDF form --- diff --git a/templates/CRM/Contact/Form/Task/PDFLetterCommon.tpl b/templates/CRM/Contact/Form/Task/PDFLetterCommon.tpl index b4be3b2407..befe6a9df4 100644 --- a/templates/CRM/Contact/Form/Task/PDFLetterCommon.tpl +++ b/templates/CRM/Contact/Form/Task/PDFLetterCommon.tpl @@ -133,6 +133,12 @@ CRM.$(function($) { $form.closest('.ui-dialog-content.crm-ajax-container').on('dialogbeforeclose', function() { $(this).trigger('crmFormSuccess'); }); + showSaveDetails($('input[name=saveTemplate]', $form)[0]); + + function showSaveTemplate() { + $('#updateDetails').toggle(!!$(this).val()); + } + $('[name=template]', $form).each(showSaveTemplate).change(showSaveTemplate); }); var currentWidth;