From 68f3f169859a094c737cb4009f007c0b005131b4 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sun, 30 Mar 2014 22:15:12 -0400 Subject: [PATCH] CRM-14408 - get rid of unnecessary calls to crmAccordions --- js/jquery/jquery.dashboard.js | 2 +- templates/CRM/Activity/Form/Activity.tpl | 1 - templates/CRM/Activity/Form/Search.tpl | 2 -- templates/CRM/Activity/Selector/Selector.tpl | 1 - templates/CRM/Admin/Form/MessageTemplates.tpl | 7 ------- templates/CRM/Admin/Form/ScheduleReminders.tpl | 3 --- templates/CRM/Campaign/Form/Search/Campaign.tpl | 4 ---- templates/CRM/Campaign/Form/Search/Common.tpl | 2 -- templates/CRM/Campaign/Form/Search/Petition.tpl | 4 ---- templates/CRM/Campaign/Form/Search/Survey.tpl | 4 ---- templates/CRM/Campaign/Form/Task/Reserve.tpl | 1 - templates/CRM/Case/Form/CaseView.js | 2 -- templates/CRM/Case/Form/Search.tpl | 7 ------- templates/CRM/Case/Page/CustomDataView.tpl | 7 ------- templates/CRM/Contact/Form/Contact.tpl | 1 - templates/CRM/Contact/Form/Edit/Address.tpl | 8 -------- templates/CRM/Contact/Form/Search/AdvancedCriteria.tpl | 1 - templates/CRM/Contact/Form/Search/BasicCriteria.tpl | 7 ------- templates/CRM/Contact/Form/Search/Builder.js | 1 - templates/CRM/Contact/Form/Search/Custom.tpl | 3 --- .../CRM/Contact/Form/Search/Custom/ActivitySearch.tpl | 7 ------- .../CRM/Contact/Form/Search/Custom/ContribSYBNT.tpl | 7 ------- .../Contact/Form/Search/Custom/ContributionAggregate.tpl | 7 ------- .../Form/Search/Custom/MultipleValuesCriteria.tpl | 7 ------- templates/CRM/Contact/Form/Search/Custom/Proximity.tpl | 7 ------- templates/CRM/Contact/Form/Task/EmailCommon.js | 1 - templates/CRM/Contact/Form/Task/PDFLetterCommon.tpl | 1 - templates/CRM/Contact/Form/Task/SMSCommon.tpl | 3 --- templates/CRM/Contact/Import/Form/Preview.tpl | 3 --- templates/CRM/Contact/Page/DashBoardDashlet.tpl | 1 - templates/CRM/Contact/Page/View/Summary.js | 1 - templates/CRM/Contribute/Form/AdditionalPayment.tpl | 7 ------- templates/CRM/Contribute/Form/Contribution.tpl | 3 --- .../CRM/Contribute/Form/ContributionPage/Premium.tpl | 1 - .../CRM/Contribute/Form/ContributionPage/Widget.tpl | 8 -------- templates/CRM/Contribute/Form/ManagePremiums.tpl | 2 -- templates/CRM/Contribute/Form/Search.tpl | 7 ------- templates/CRM/Custom/Form/CustomData.tpl | 7 ------- templates/CRM/Custom/Page/CustomDataView.tpl | 7 ------- .../CRM/Event/Form/ManageEvent/ScheduleReminders.tpl | 1 - templates/CRM/Event/Form/ManageEvent/Tab.tpl | 1 - templates/CRM/Event/Form/Participant.tpl | 5 ----- templates/CRM/Event/Form/Search.tpl | 7 ------- templates/CRM/Financial/Form/BatchTransaction.tpl | 1 - templates/CRM/Financial/Form/FinancialBatch.tpl | 7 ------- templates/CRM/Financial/Page/Batch.tpl | 3 --- templates/CRM/Form/attachment.tpl | 9 --------- templates/CRM/Grant/Form/Grant.tpl | 3 --- templates/CRM/Grant/Form/Search.tpl | 7 ------- templates/CRM/Mailing/Form/Approve.tpl | 9 --------- templates/CRM/Mailing/Form/Group.tpl | 8 -------- templates/CRM/Mailing/Form/Schedule.tpl | 8 -------- templates/CRM/Mailing/Form/Test.tpl | 8 -------- templates/CRM/Member/Form/Search.tpl | 7 ------- templates/CRM/Pledge/Form/Pledge.tpl | 7 ------- templates/CRM/Pledge/Form/Search.tpl | 7 ------- templates/CRM/Profile/Form/Search.tpl | 9 --------- templates/CRM/Report/Form/Case/Detail.tpl | 8 -------- templates/CRM/Report/Form/Fields.tpl | 8 -------- templates/CRM/Report/Page/InstanceList.tpl | 7 ------- templates/CRM/Report/Page/TemplateList.tpl | 7 ------- templates/CRM/SMS/Form/Group.tpl | 8 -------- templates/CRM/SMS/Form/Schedule.tpl | 5 ----- templates/CRM/UF/Form/AdvanceSetting.tpl | 8 -------- 64 files changed, 1 insertion(+), 312 deletions(-) diff --git a/js/jquery/jquery.dashboard.js b/js/jquery/jquery.dashboard.js index acb39e845b..d4d396dea8 100644 --- a/js/jquery/jquery.dashboard.js +++ b/js/jquery/jquery.dashboard.js @@ -411,7 +411,7 @@ if (!widget.fullscreenUrl) { return; } - CRM.loadPage(widget.fullscreenUrl).crmAccordions(); + CRM.loadPage(widget.fullscreenUrl); }; // Exit fullscreen mode. diff --git a/templates/CRM/Activity/Form/Activity.tpl b/templates/CRM/Activity/Form/Activity.tpl index ace2049703..c6c529de2a 100644 --- a/templates/CRM/Activity/Form/Activity.tpl +++ b/templates/CRM/Activity/Form/Activity.tpl @@ -239,7 +239,6 @@ {literal} -{/literal} diff --git a/templates/CRM/Admin/Form/ScheduleReminders.tpl b/templates/CRM/Admin/Form/ScheduleReminders.tpl index f92f6cd91a..64a6405cfa 100644 --- a/templates/CRM/Admin/Form/ScheduleReminders.tpl +++ b/templates/CRM/Admin/Form/ScheduleReminders.tpl @@ -176,9 +176,6 @@ {literal} -{/literal} {/if} {include file="CRM/Case/Form/ActivityChangeStatusJs.tpl"} diff --git a/templates/CRM/Case/Page/CustomDataView.tpl b/templates/CRM/Case/Page/CustomDataView.tpl index da6ef019d1..e30695981d 100644 --- a/templates/CRM/Case/Page/CustomDataView.tpl +++ b/templates/CRM/Case/Page/CustomDataView.tpl @@ -82,13 +82,6 @@ {/foreach}
-{literal} - -{/literal} {*currently delete is available only for tab custom data*} {if $groupId} {/literal} -{literal} - -{/literal} - diff --git a/templates/CRM/Contact/Form/Search/AdvancedCriteria.tpl b/templates/CRM/Contact/Form/Search/AdvancedCriteria.tpl index 21212d400d..59bf49e6d6 100644 --- a/templates/CRM/Contact/Form/Search/AdvancedCriteria.tpl +++ b/templates/CRM/Contact/Form/Search/AdvancedCriteria.tpl @@ -27,7 +27,6 @@ {literal} -{/literal} diff --git a/templates/CRM/Contact/Form/Search/Builder.js b/templates/CRM/Contact/Form/Search/Builder.js index fedc9fb6c7..5a572419b3 100644 --- a/templates/CRM/Contact/Form/Search/Builder.js +++ b/templates/CRM/Contact/Form/Search/Builder.js @@ -242,7 +242,6 @@ $('select[id^=mapper][id$="_1"]', '#Builder').each(handleUserInputField); }); - $().crmAccordions(); initialize(); // Fetch initial options during page refresh - it's more efficient to bundle them in a single ajax request diff --git a/templates/CRM/Contact/Form/Search/Custom.tpl b/templates/CRM/Contact/Form/Search/Custom.tpl index e4dee4517e..2c986fcca7 100644 --- a/templates/CRM/Contact/Form/Search/Custom.tpl +++ b/templates/CRM/Contact/Form/Search/Custom.tpl @@ -132,9 +132,6 @@ {/if} {literal} -{/literal} diff --git a/templates/CRM/Contact/Form/Search/Custom/ContribSYBNT.tpl b/templates/CRM/Contact/Form/Search/Custom/ContribSYBNT.tpl index 7d368b48dd..abea0492d0 100644 --- a/templates/CRM/Contact/Form/Search/Custom/ContribSYBNT.tpl +++ b/templates/CRM/Contact/Form/Search/Custom/ContribSYBNT.tpl @@ -149,10 +149,3 @@ {/if} -{literal} - -{/literal} diff --git a/templates/CRM/Contact/Form/Search/Custom/ContributionAggregate.tpl b/templates/CRM/Contact/Form/Search/Custom/ContributionAggregate.tpl index 72f710ca40..e30e8e6dc8 100644 --- a/templates/CRM/Contact/Form/Search/Custom/ContributionAggregate.tpl +++ b/templates/CRM/Contact/Form/Search/Custom/ContributionAggregate.tpl @@ -141,10 +141,3 @@ {/if} -{literal} - -{/literal} diff --git a/templates/CRM/Contact/Form/Search/Custom/MultipleValuesCriteria.tpl b/templates/CRM/Contact/Form/Search/Custom/MultipleValuesCriteria.tpl index bb2c561830..08e612d472 100644 --- a/templates/CRM/Contact/Form/Search/Custom/MultipleValuesCriteria.tpl +++ b/templates/CRM/Contact/Form/Search/Custom/MultipleValuesCriteria.tpl @@ -107,10 +107,3 @@ {/strip} -{literal} - -{/literal} diff --git a/templates/CRM/Contact/Form/Search/Custom/Proximity.tpl b/templates/CRM/Contact/Form/Search/Custom/Proximity.tpl index 70eb60ae7c..ba28bf771b 100644 --- a/templates/CRM/Contact/Form/Search/Custom/Proximity.tpl +++ b/templates/CRM/Contact/Form/Search/Custom/Proximity.tpl @@ -126,10 +126,3 @@ {/if} -{literal} - -{/literal} diff --git a/templates/CRM/Contact/Form/Task/EmailCommon.js b/templates/CRM/Contact/Form/Task/EmailCommon.js index b2ae29ba46..3f6a1b35d6 100644 --- a/templates/CRM/Contact/Form/Task/EmailCommon.js +++ b/templates/CRM/Contact/Form/Task/EmailCommon.js @@ -1,7 +1,6 @@ CRM.$(function($) { //do not copy & paste this - find a way to generalise it 'use strict'; - $().crmAccordions(); // NOTE: Might be safer to say $('[name=_qf_Email_upload]') $('.form-submit').not('.cancel').on("click", function() { $('.form-submit').not('.cancel').attr({value: ts('Processing')}); diff --git a/templates/CRM/Contact/Form/Task/PDFLetterCommon.tpl b/templates/CRM/Contact/Form/Task/PDFLetterCommon.tpl index 7cf5bcde41..71a69b40cf 100644 --- a/templates/CRM/Contact/Form/Task/PDFLetterCommon.tpl +++ b/templates/CRM/Contact/Form/Task/PDFLetterCommon.tpl @@ -122,7 +122,6 @@ CRM.$(function($) { $('#format_id', $form).on('change', function() { selectFormat($(this).val()); }); - $().crmAccordions(); }); var currentWidth; diff --git a/templates/CRM/Contact/Form/Task/SMSCommon.tpl b/templates/CRM/Contact/Form/Task/SMSCommon.tpl index 6114e7b152..e6c94818fe 100644 --- a/templates/CRM/Contact/Form/Task/SMSCommon.tpl +++ b/templates/CRM/Contact/Form/Task/SMSCommon.tpl @@ -57,9 +57,6 @@ {include file="CRM/Mailing/Form/InsertTokens.tpl"} {literal} {/literal} diff --git a/templates/CRM/Contact/Page/View/Summary.js b/templates/CRM/Contact/Page/View/Summary.js index ef63940e86..a425d6f833 100644 --- a/templates/CRM/Contact/Page/View/Summary.js +++ b/templates/CRM/Contact/Page/View/Summary.js @@ -326,6 +326,5 @@ _.each(data.reloadBlocks, reloadBlock); } }); - $().crmAccordions(); }); })(CRM.$, CRM._); diff --git a/templates/CRM/Contribute/Form/AdditionalPayment.tpl b/templates/CRM/Contribute/Form/AdditionalPayment.tpl index 1004450c26..ad4bf9544d 100644 --- a/templates/CRM/Contribute/Form/AdditionalPayment.tpl +++ b/templates/CRM/Contribute/Form/AdditionalPayment.tpl @@ -288,10 +288,3 @@ cj('#fee_amount').change( function() { {include file="CRM/common/formNavigate.tpl"} {/if} -{literal} - -{/literal} diff --git a/templates/CRM/Contribute/Form/Contribution.tpl b/templates/CRM/Contribute/Form/Contribution.tpl index 79f05effbf..0ae186af6e 100644 --- a/templates/CRM/Contribute/Form/Contribution.tpl +++ b/templates/CRM/Contribute/Form/Contribution.tpl @@ -538,9 +538,6 @@ {literal} -{/literal} diff --git a/templates/CRM/Contribute/Form/ManagePremiums.tpl b/templates/CRM/Contribute/Form/ManagePremiums.tpl index 231d24635d..3a55d415ed 100644 --- a/templates/CRM/Contribute/Form/ManagePremiums.tpl +++ b/templates/CRM/Contribute/Form/ManagePremiums.tpl @@ -172,8 +172,6 @@ function add_upload_file_block(parms) { } } -cj().crmAccordions(); - {/literal} diff --git a/templates/CRM/Contribute/Form/Search.tpl b/templates/CRM/Contribute/Form/Search.tpl index 5f10bdcd68..4cf9819ea2 100644 --- a/templates/CRM/Contribute/Form/Search.tpl +++ b/templates/CRM/Contribute/Form/Search.tpl @@ -90,11 +90,4 @@ {/if} -{literal} - -{/literal} diff --git a/templates/CRM/Custom/Form/CustomData.tpl b/templates/CRM/Custom/Form/CustomData.tpl index a9fd459b5b..3022505f4c 100644 --- a/templates/CRM/Custom/Form/CustomData.tpl +++ b/templates/CRM/Custom/Form/CustomData.tpl @@ -92,13 +92,6 @@ {/if}
{/foreach} - {/if} diff --git a/templates/CRM/Custom/Page/CustomDataView.tpl b/templates/CRM/Custom/Page/CustomDataView.tpl index db3e48e375..28474618b5 100644 --- a/templates/CRM/Custom/Page/CustomDataView.tpl +++ b/templates/CRM/Custom/Page/CustomDataView.tpl @@ -182,13 +182,6 @@ {/if} {/foreach} {/foreach} -{literal} - -{/literal} {*currently delete is available only for tab custom data*} {if $groupId} {/literal} diff --git a/templates/CRM/Event/Form/Participant.tpl b/templates/CRM/Event/Form/Participant.tpl index 4e085d14b5..4b76db50d8 100644 --- a/templates/CRM/Event/Form/Participant.tpl +++ b/templates/CRM/Event/Form/Participant.tpl @@ -609,11 +609,6 @@ } {/literal} {/if} - {literal} - CRM.$(function($) { - cj().crmAccordions(); - }); - {/literal} {/if} {* end of main event block*} diff --git a/templates/CRM/Event/Form/Search.tpl b/templates/CRM/Event/Form/Search.tpl index 8b5c0f54fd..dc82502967 100644 --- a/templates/CRM/Event/Form/Search.tpl +++ b/templates/CRM/Event/Form/Search.tpl @@ -77,10 +77,3 @@ {/if} -{literal} - -{/literal} diff --git a/templates/CRM/Financial/Form/BatchTransaction.tpl b/templates/CRM/Financial/Form/BatchTransaction.tpl index 293e15f531..0ce0b1dfd2 100644 --- a/templates/CRM/Financial/Form/BatchTransaction.tpl +++ b/templates/CRM/Financial/Form/BatchTransaction.tpl @@ -90,7 +90,6 @@ {literal} -{/literal} diff --git a/templates/CRM/Financial/Page/Batch.tpl b/templates/CRM/Financial/Page/Batch.tpl index 9d61b9bbc3..4f719afdab 100644 --- a/templates/CRM/Financial/Page/Batch.tpl +++ b/templates/CRM/Financial/Page/Batch.tpl @@ -24,6 +24,3 @@ +--------------------------------------------------------------------+ *} {include file="CRM/Financial/Form/Search.tpl"} - diff --git a/templates/CRM/Form/attachment.tpl b/templates/CRM/Form/attachment.tpl index ecd119c93b..97640108f5 100644 --- a/templates/CRM/Form/attachment.tpl +++ b/templates/CRM/Form/attachment.tpl @@ -127,15 +127,6 @@ - {if !$noexpand} - {literal} - - {/literal} - {/if} {literal} {/literal} diff --git a/templates/CRM/Grant/Form/Search.tpl b/templates/CRM/Grant/Form/Search.tpl index b2436d142b..3c0ae60120 100644 --- a/templates/CRM/Grant/Form/Search.tpl +++ b/templates/CRM/Grant/Form/Search.tpl @@ -70,10 +70,3 @@ {/if} -{literal} - -{/literal} diff --git a/templates/CRM/Mailing/Form/Approve.tpl b/templates/CRM/Mailing/Form/Approve.tpl index 0a554f0cf8..bc4d5b73be 100644 --- a/templates/CRM/Mailing/Form/Approve.tpl +++ b/templates/CRM/Mailing/Form/Approve.tpl @@ -58,12 +58,3 @@ - -{literal} - -{/literal} - diff --git a/templates/CRM/Mailing/Form/Group.tpl b/templates/CRM/Mailing/Form/Group.tpl index 6b19195da3..e273a97c62 100644 --- a/templates/CRM/Mailing/Form/Group.tpl +++ b/templates/CRM/Mailing/Form/Group.tpl @@ -77,14 +77,6 @@
{include file="CRM/common/formButtons.tpl"}
-{literal} - -{/literal} - {* include jscript to warn if unsaved form field changes *} {include file="CRM/common/formNavigate.tpl"} diff --git a/templates/CRM/Mailing/Form/Schedule.tpl b/templates/CRM/Mailing/Form/Schedule.tpl index 194856ae23..deccdaf57d 100644 --- a/templates/CRM/Mailing/Form/Schedule.tpl +++ b/templates/CRM/Mailing/Form/Schedule.tpl @@ -75,14 +75,6 @@ -{/literal} - diff --git a/templates/CRM/Member/Form/Search.tpl b/templates/CRM/Member/Form/Search.tpl index 76338d461f..04203947c0 100644 --- a/templates/CRM/Member/Form/Search.tpl +++ b/templates/CRM/Member/Form/Search.tpl @@ -71,10 +71,3 @@ {/if} -{literal} - -{/literal} diff --git a/templates/CRM/Pledge/Form/Pledge.tpl b/templates/CRM/Pledge/Form/Pledge.tpl index 1837f7d304..4223dd56d4 100644 --- a/templates/CRM/Pledge/Form/Pledge.tpl +++ b/templates/CRM/Pledge/Form/Pledge.tpl @@ -200,13 +200,6 @@ function loadPanes( id ) {
{include file="CRM/common/formButtons.tpl" location="bottom"}
-{literal} - -{/literal} {literal} -{/literal} diff --git a/templates/CRM/Profile/Form/Search.tpl b/templates/CRM/Profile/Form/Search.tpl index 8735b8994d..c690b58990 100644 --- a/templates/CRM/Profile/Form/Search.tpl +++ b/templates/CRM/Profile/Form/Search.tpl @@ -140,15 +140,6 @@ {if $groupId} - - {literal} - - {/literal} - {/if} {elseif $statusMessage} diff --git a/templates/CRM/Report/Form/Case/Detail.tpl b/templates/CRM/Report/Form/Case/Detail.tpl index 3018ead021..6767c16e5d 100644 --- a/templates/CRM/Report/Form/Case/Detail.tpl +++ b/templates/CRM/Report/Form/Case/Detail.tpl @@ -253,14 +253,6 @@ {/if} {/if} {* settings section ends *} - {literal} - - {/literal} - {/if} {* NO print section ends *} diff --git a/templates/CRM/Report/Form/Fields.tpl b/templates/CRM/Report/Form/Fields.tpl index b21a32e83a..1db83d6569 100644 --- a/templates/CRM/Report/Form/Fields.tpl +++ b/templates/CRM/Report/Form/Fields.tpl @@ -70,12 +70,4 @@ {/if} {/if} {* settings section ends *} -{literal} - -{/literal} - {/if} {* NO print section ends *} diff --git a/templates/CRM/Report/Page/InstanceList.tpl b/templates/CRM/Report/Page/InstanceList.tpl index 63c68126e3..6fcf2ac966 100644 --- a/templates/CRM/Report/Page/InstanceList.tpl +++ b/templates/CRM/Report/Page/InstanceList.tpl @@ -82,10 +82,3 @@ {/if} {/strip} -{literal} - -{/literal} diff --git a/templates/CRM/Report/Page/TemplateList.tpl b/templates/CRM/Report/Page/TemplateList.tpl index 0b38e6de62..3952ae88b1 100644 --- a/templates/CRM/Report/Page/TemplateList.tpl +++ b/templates/CRM/Report/Page/TemplateList.tpl @@ -65,11 +65,4 @@ {/if} {/strip} -{literal} - -{/literal} diff --git a/templates/CRM/SMS/Form/Group.tpl b/templates/CRM/SMS/Form/Group.tpl index 8d7b69c10d..393298ee0a 100644 --- a/templates/CRM/SMS/Form/Group.tpl +++ b/templates/CRM/SMS/Form/Group.tpl @@ -67,14 +67,6 @@
{include file="CRM/common/formButtons.tpl"}
-{literal} - -{/literal} - {* include jscript to warn if unsaved form field changes *} {include file="CRM/common/formNavigate.tpl"} diff --git a/templates/CRM/SMS/Form/Schedule.tpl b/templates/CRM/SMS/Form/Schedule.tpl index f494d34cc5..999f7be76e 100644 --- a/templates/CRM/SMS/Form/Schedule.tpl +++ b/templates/CRM/SMS/Form/Schedule.tpl @@ -73,11 +73,6 @@ -{/literal} -