X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FContact%2FPage%2FDashBoard.php;h=2466d9f8bb7e05e14867db1df55403b1bf96a0a8;hb=76773c5a5191673e990d6e9ee4e8d2c9a664e819;hp=2d51109b34ac348d3a72457aa2e8e11c2e98de71;hpb=0ce8483729744eef1649ad91f908fda25ee5223f;p=civicrm-core.git diff --git a/CRM/Contact/Page/DashBoard.php b/CRM/Contact/Page/DashBoard.php index 2d51109b34..2466d9f8bb 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')); @@ -135,4 +126,3 @@ class CRM_Contact_Page_DashBoard extends CRM_Core_Page { return parent::run(); } } -