}
}
+ // 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);
*}
<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