X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FContact%2FPage%2FDashBoard.php;h=6ef7b94e4be383599603fb95e31df174eb2fbbc5;hb=1789c269b1c68178c1f3de38d751a4e37f94db4c;hp=feecc6270f32c8b473d76c08ca719d2692f5401e;hpb=adc13f865ee7ced5d485e801528f2481fb6da0b0;p=civicrm-core.git diff --git a/CRM/Contact/Page/DashBoard.php b/CRM/Contact/Page/DashBoard.php index feecc6270f..6ef7b94e4b 100644 --- a/CRM/Contact/Page/DashBoard.php +++ b/CRM/Contact/Page/DashBoard.php @@ -1,9 +1,9 @@ addScriptFile('civicrm', 'packages/jquery/plugins/jquery.dashboard.js', 0, 'html-header', FALSE); - $resources->addStyleFile('civicrm', 'packages/jquery/css/dashboard.css'); + $resources->addScriptFile('civicrm', 'js/jquery/jquery.dashboard.js', 0, 'html-header', FALSE); + $resources->addStyleFile('civicrm', 'css/dashboard.css'); $config = CRM_Core_Config::singleton(); - // Add dashlet-specific js files - // TODO: Need a much better way of managing on-the-fly js requirements. Require.js perhaps? - // Checking if a specific dashlet is enabled is a pain and including the js here sucks anyway - // So here's a compromise: - if (in_array('CiviCase', $config->enableComponents)) { - $resources->addScriptFile('civicrm', 'templates/CRM/Case/Form/ActivityChangeStatus.js'); - } - $resetCache = CRM_Utils_Request::retrieve('resetCache', 'Positive', CRM_Core_DAO::$_nullObject); CRM_Utils_System::setTitle(ts('CiviCRM Home'));