X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=js%2Fjquery%2Fjquery.crmeditable.js;h=a963a36eabc4238ef10a1b6f1a205827dab7be47;hb=6017af4df6ce81303ac805ec2e392c3f21e443b2;hp=b437c36dcdf796bfc02b5d9ec7f306b6b794ba21;hpb=88bafc51d93574c6ab8f180b67c9f48aabcd462e;p=civicrm-core.git 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"; }