Remove crm.admin.js
[civicrm-core.git] / js / jquery / jquery.crmEditable.js
index 624f51b971b1137666570c4e994faca42b273657..ca1a08e24845a26c1ec129c0175bba0aed50d7ce 100644 (file)
@@ -29,6 +29,7 @@
         ret[fieldName] = $(this).text();
         if (this === el) {
           ret.field = fieldName;
+          ret.params = $(this).data('params');
         }
       }
     });
         var
           info = $i.crmEditableEntity(),
           $el = $($i),
-          params = {},
+          params = info.params || {},
           action = $i.data('action') || info.action;
         if (!info.field) {
           return false;
               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) {