From: colemanw Date: Thu, 11 May 2017 21:25:43 +0000 (-0500) Subject: Combine jQuery selectors X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=5f1901e923ddbcecc1efd3255f02a6921688c474;p=civicrm-core.git Combine jQuery selectors --- diff --git a/templates/CRM/Admin/Form/MessageTemplates.tpl b/templates/CRM/Admin/Form/MessageTemplates.tpl index 2634ae8ced..d3add4b05b 100644 --- a/templates/CRM/Admin/Form/MessageTemplates.tpl +++ b/templates/CRM/Admin/Form/MessageTemplates.tpl @@ -165,8 +165,7 @@ }); function showHideUpload(type) { var show = (type == 1) ? false : true; - $("#msg_html_section").toggle(show); - $("#msg_text_section, #pdf_format").toggle(show); + $("#msg_html_section, #msg_text_section, #pdf_format").toggle(show); $("#file_id").parent().parent().toggle(!show); // auto file type validation