Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.2.0
-
Fix Version/s: 4.3.0
-
Component/s: CiviCRM API, Joomla Integration
-
Labels:None
Description
In order to utilize the crmAutocomplete function with the "Current Employer Autocomplete" extension on Joomla it was necessary to make changes to paths that are hard coded in civicrm/js/rest.js.
On or about line 64 it was necessary to change from:
ajaxURL: "/civicrm/ajax/rest",
to:
ajaxURL: "/administrator/index.php?option=com_civicrm&task=civicrm/ajax/rest",
On or about line 132 it was necessary to change from:
var contactUrl = defaults.ajaxURL + "?"+ $.param(params);
to:
var contactUrl = defaults.ajaxURL + "&"+ $.param(params);
I'm assuming the original path is a Drupal path but because this is a static file I can't think of an elegant way to flag JS file changes between Joomla and Drupal (and presumably Wordpress). Perhaps expose a global javascript variable that is set to CIVICRM_UF which can be checked by other JavaScript code that needs to be cms aware?