Skip to content

Commit

Permalink
Merge pull request #11639 from aydun/CRM-21741-crmEditable-params
Browse files Browse the repository at this point in the history
Allow data-params to be specified as an item property and passed to CRM.api3 call
  • Loading branch information
colemanw authored Feb 7, 2018
2 parents c10a4b1 + a93e98f commit 0b2bcfa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/jquery/jquery.crmEditable.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
ret[fieldName] = $(this).text();
if (this === el) {
ret.field = fieldName;
ret.params = $(this).data('params');
}
}
});
Expand Down Expand Up @@ -132,7 +133,7 @@
var
info = $i.crmEditableEntity(),
$el = $($i),
params = {},
params = info.params || {},
action = $i.data('action') || info.action;
if (!info.field) {
return false;
Expand Down

0 comments on commit 0b2bcfa

Please sign in to comment.