CRM-13932 - move jQuery.redirect out of core resources
authorColeman Watts <coleman@civicrm.org>
Thu, 12 Dec 2013 04:13:31 +0000 (20:13 -0800)
committerColeman Watts <coleman@civicrm.org>
Mon, 6 Jan 2014 19:06:47 +0000 (11:06 -0800)
CRM/Core/Resources.php
CRM/Financial/Form/Search.php

index 557f0dbf9cece2a9b4f942a3b7b632cd61c5d6c4..dec03b682ca4dc3b695bffa4458e005f643d65bf 100644 (file)
@@ -579,8 +579,6 @@ class CRM_Core_Resources {
 
       "packages/jquery/plugins/jquery.notify$min.js",
 
-      "packages/jquery/plugins/jquery.redirect.min.js",
-
       "js/rest.js",
       "js/Common.js",
 
index b9c0c634725289aaa809e85fc53cbe228719d3c1..bc52e1079bcad72e37ce594ac2ebdcc976681138 100644 (file)
@@ -52,6 +52,7 @@ class CRM_Financial_Form_Search extends CRM_Core_Form {
   }
 
   public function buildQuickForm() {
+    CRM_Core_Resources::singleton()->addScriptFile('civicrm', 'packages/jquery/plugins/jquery.redirect.min.js', 0, 'html-header');
     $attributes = CRM_Core_DAO::getAttribute('CRM_Batch_DAO_Batch');
     $attributes['total']['class'] = $attributes['item_count']['class'] = 'number';
     $this->add('text', 'title', ts('Batch Name'), $attributes['title']);