info: Fix issue where jquery.notify.js is sometimes not loaded and
authorDavid Thompson <davet@gnu.org>
Wed, 5 Nov 2014 22:44:48 +0000 (17:44 -0500)
committerDavid Thompson <davet@gnu.org>
Wed, 5 Nov 2014 22:44:48 +0000 (17:44 -0500)
breaks the page.

* CRM/Memberdashboard/Page/Info.php (CRM_Memberdashboard_Page_Info)
  [run]: Add jquery.notify.min.js resource.

CRM/Memberdashboard/Page/Info.php

index 0b6d56b305c6a345962e305e08bf2172fd9b79fd..9febdb89111f09a75b3c476c70f9895a3417b6d5 100644 (file)
@@ -32,6 +32,11 @@ class CRM_Memberdashboard_Page_Info extends CRM_Core_Page {
     ));
 
     $resources = CRM_Core_Resources::singleton();
+    // FIXME: Hack for when civicrm doesn't include this on the page
+    // for authenticated, non-admin users.
+    $resources->addScriptFile('civicrm',
+                              'packages/jquery/plugins/jquery.notify.min.js',
+                              10, 'html-header');
     $resources->addScriptFile('org.fsf.memberdashboard',
                               'assets/js/underscore.js');
     $resources->addScriptFile('org.fsf.memberdashboard',