From: Xavier Dutoit Date: Wed, 20 Mar 2013 23:08:09 +0000 (+0100) Subject: CRM-12124 in place edit option value, prepare being able to use action=create X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6017af4df6ce81303ac805ec2e392c3f21e443b2;p=civicrm-core.git CRM-12124 in place edit option value, prepare being able to use action=create --- diff --git a/js/jquery/jquery.crmeditable.js b/js/jquery/jquery.crmeditable.js index b437c36dcd..a963a36eab 100644 --- a/js/jquery/jquery.crmeditable.js +++ b/js/jquery/jquery.crmeditable.js @@ -141,7 +141,7 @@ return; } - if (this.nodeName = 'A') { + if (this.nodeName == 'A') { if (this.className.indexOf('crmf-') == -1) { // it isn't a jeditable field var formSettings= $.extend({}, editableSettings.form , {source: $i.attr('href') @@ -242,10 +242,12 @@ } if ($i.data('action')) { - params[params['field']]=value;//format for create at least - action=$i.data('action'); + var fieldName = params['field']; delete params['field']; delete params['value']; + + params[fieldName]=value;//format for create at least + action=$i.data('action'); } else { action="setvalue"; }