From 7909a12086a5e46f12bdb37417aa1fba987d4ded Mon Sep 17 00:00:00 2001 From: David Thompson Date: Wed, 5 Nov 2014 17:44:48 -0500 Subject: [PATCH] info: Fix issue where jquery.notify.js is sometimes not loaded and breaks the page. * CRM/Memberdashboard/Page/Info.php (CRM_Memberdashboard_Page_Info) [run]: Add jquery.notify.min.js resource. --- CRM/Memberdashboard/Page/Info.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CRM/Memberdashboard/Page/Info.php b/CRM/Memberdashboard/Page/Info.php index 0b6d56b..9febdb8 100644 --- a/CRM/Memberdashboard/Page/Info.php +++ b/CRM/Memberdashboard/Page/Info.php @@ -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', -- 2.25.1