Skip to content
Snippets Groups Projects
Commit 1990e491 authored by totten's avatar totten
Browse files

Merge branch 'hr-130' of git://github.com/dakshayani/civicrm-core into pull-request-1713

parents 975cb25c 44b74e45
Branches
Tags
No related merge requests found
......@@ -25,11 +25,17 @@
*/
$.fn.crmContactField = function() {
return this.each(function(){
var contactUrl = CRM.url('civicrm/ajax/rest', 'className=CRM_Contact_Page_AJAX&fnName=getContactList&json=1');
var urlParams = 'className=CRM_Contact_Page_AJAX&fnName=getContactList&json=1';
var hiddenEl = this;
var widgetEl = $('<input type="text" />');
var activeContactId = null;
// For organization autocomplete
if($(this).attr('urlParam')) {
var param = $(this).attr('urlParam');
var urlParams = urlParams + '&' + param;
}
var contactUrl = CRM.url('civicrm/ajax/rest', urlParams);
var setContactId = function(newContactId) {
if (newContactId != $(hiddenEl).val()) {
$(hiddenEl).val(newContactId);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment