From ef3309b625667d87e95efcc49c50f5dc35f6cce5 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sat, 13 Apr 2013 15:21:00 -0700 Subject: [PATCH] Remove scripts.tpl and references to it CRM-12339 --- js/Common.js | 4 +-- templates/CRM/Core/APIDoc.tpl | 1 - templates/CRM/Form/validate.tpl | 9 +++--- templates/CRM/common/Navigation.tpl | 3 +- templates/CRM/common/drupal.tpl | 1 - templates/CRM/common/drupal6.tpl | 1 - templates/CRM/common/joomla.tpl | 1 - templates/CRM/common/print.tpl | 1 - templates/CRM/common/scripts.tpl | 49 ----------------------------- templates/CRM/common/wordpress.tpl | 1 - 10 files changed, 7 insertions(+), 64 deletions(-) delete mode 100644 templates/CRM/common/scripts.tpl diff --git a/js/Common.js b/js/Common.js index bf4273c74e..c9f76c912a 100644 --- a/js/Common.js +++ b/js/Common.js @@ -763,8 +763,8 @@ CRM.validate = CRM.validate || { }); } - $(document).ready(function() { - if (CRM && CRM.config && CRM.config.urlIsPublic === false) { + $(function() { + if ($('#crm-notification-container').length) { // Initialize notifications $('#crm-notification-container').notify(); messagesFromMarkup.call($('#crm-container')); diff --git a/templates/CRM/Core/APIDoc.tpl b/templates/CRM/Core/APIDoc.tpl index 914448a250..ac08b2bb35 100644 --- a/templates/CRM/Core/APIDoc.tpl +++ b/templates/CRM/Core/APIDoc.tpl @@ -10,7 +10,6 @@ h2.entity {cursor:pointer} {/literal} -{include file="CRM/common/scripts.tpl"} diff --git a/templates/CRM/common/wordpress.tpl b/templates/CRM/common/wordpress.tpl index fdb0231abd..8187f5759e 100644 --- a/templates/CRM/common/wordpress.tpl +++ b/templates/CRM/common/wordpress.tpl @@ -23,7 +23,6 @@ | see the CiviCRM license FAQ at http://civicrm.org/licensing | +--------------------------------------------------------------------+ *} -{include file="CRM/common/scripts.tpl"} {if $config->debug} {include file="CRM/common/debug.tpl"} {/if} -- 2.25.1