X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=js%2Fjquery%2Fjquery.crmEditable.js;h=b68b27f0a24012a04ecf7d34a41526bfe4b31902;hb=579293b64c754bcc526a6d510bb17f22f2b0e101;hp=f6920f744b943d59823b33d0820dfacdbc2ca96e;hpb=66390ef5e9086fe441da1e85368f5305bdf23d42;p=civicrm-core.git diff --git a/js/jquery/jquery.crmEditable.js b/js/jquery/jquery.crmEditable.js index f6920f744b..b68b27f0a2 100644 --- a/js/jquery/jquery.crmEditable.js +++ b/js/jquery/jquery.crmEditable.js @@ -29,6 +29,7 @@ ret[fieldName] = $(this).text(); if (this === el) { ret.field = fieldName; + ret.params = $(this).data('params'); } } }); @@ -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; @@ -167,7 +168,7 @@ }); } - CRM.loadScript(CRM.config.resourceBase + 'packages/jquery/plugins/jquery.jeditable.min.js').done(function() { + CRM.loadScript(CRM.config.packagesBase + 'jquery/plugins/jquery.jeditable.min.js').done(function() { $i.editable(callback, settings); });