From 6017af4df6ce81303ac805ec2e392c3f21e443b2 Mon Sep 17 00:00:00 2001 From: Xavier Dutoit Date: Thu, 21 Mar 2013 00:08:09 +0100 Subject: [PATCH] CRM-12124 in place edit option value, prepare being able to use action=create --- js/jquery/jquery.crmeditable.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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"; } -- 2.25.1