From: David Thompson Date: Wed, 5 Nov 2014 22:44:48 +0000 (-0500) Subject: info: Fix issue where jquery.notify.js is sometimes not loaded and X-Git-Tag: v0.1~31 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=7909a12086a5e46f12bdb37417aa1fba987d4ded;p=org.fsf.memberdashboard.git 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. --- 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',