Merge branch 'master' of git.curoverse.com:arvados #2751
[arvados.git] / apps / workbench / app / assets / javascripts / editable.js
index 8eea1693e8721efcf401c4c2c3c55bb0205180d1..0514c1e67ffb7aa789d983eb3c3b09d53530d6d2 100644 (file)
@@ -9,6 +9,10 @@ $.fn.editable.defaults.send = 'always';
 // too narrow, when the popup box will just move to do the right thing.
 //$.fn.editable.defaults.mode = 'inline';
 
+$.fn.editable.defaults.success = function (response, newValue) {
+    $(document).trigger('editable:success', [this, response, newValue]);
+};
+
 $.fn.editable.defaults.params = function (params) {
     var a = {};
     var key = params.pk.key;