From 14638f88786b39068a26b642fa525f1ac7bd912f Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 7 Oct 2015 14:41:55 -0400 Subject: [PATCH] Fix template checkboxes in Print PDF form --- templates/CRM/Contact/Form/Task/PDFLetterCommon.tpl | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- 2.25.1