Combine jQuery selectors
authorcolemanw <coleman@civicrm.org>
Thu, 11 May 2017 21:25:43 +0000 (16:25 -0500)
committerGitHub <noreply@github.com>
Thu, 11 May 2017 21:25:43 +0000 (16:25 -0500)
templates/CRM/Admin/Form/MessageTemplates.tpl

index 2634ae8ced18211d24cbfea33975b9d1a5f83a74..d3add4b05b62f40333f98a7abd8ec2a873216347 100644 (file)
       });
       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