X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=js%2Fjquery%2Fjquery.crmEditable.js;h=ca1a08e24845a26c1ec129c0175bba0aed50d7ce;hb=6fe426fc1c924bbfcf29735d5f9e9763b1dbd389;hp=624f51b971b1137666570c4e994faca42b273657;hpb=fdbbaeee16125840b9e5daed81dbbb28e2db2b21;p=civicrm-core.git diff --git a/js/jquery/jquery.crmEditable.js b/js/jquery/jquery.crmEditable.js index 624f51b971..ca1a08e248 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; @@ -159,7 +160,7 @@ var options = optionsCache[$el.data('optionsHashKey')]; value = options && options[value] ? options[value] : ''; } - $el.trigger('crmFormSuccess'); + $el.trigger('crmFormSuccess', [value]); editableSettings.success.call($el[0], info.entity, info.field, value, data, settings); }) .fail(function(data) {