Skip to content
Snippets Groups Projects
Commit 6017af4d authored by xavier's avatar xavier
Browse files

CRM-12124 in place edit option value, prepare being able to use action=create

parent 88bafc51
No related branches found
No related tags found
No related merge requests found
......@@ -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";
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment