Skip to content
Snippets Groups Projects
Commit 8053ab8a authored by colemanw's avatar colemanw
Browse files

Move CRM.url init out of template CRM-12339

parent 74227f77
Branches
Tags
No related merge requests found
......@@ -445,6 +445,11 @@ class CRM_Core_Resources {
}
}
// Initialize CRM.url
$url = CRM_Utils_System::url('civicrm/example', 'placeholder', FALSE, NULL, FALSE);
$js = "CRM.url('init', '$url');";
$this->addScript($js, $jsWeight++, $region);
// Give control of jQuery back to the CMS - this loads last
$this->addScriptFile('civicrm', 'js/noconflict.js', 9999, $region, FALSE);
......
......@@ -25,9 +25,6 @@
*}
<script type="text/javascript">
{* Initialize CRM.url *}
CRM.url('init', '{crmURL p="civicrm/example" q="placeholder" h=0 }');
{*/*
* Here we define the CRM object,
* A single global variable to hold everything that needs to be accessed from the global scope
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment