Ticket #3127: normalizedreturn.patch
| File normalizedreturn.patch, 531 bytes (added by invi, 2 years ago) |
|---|
-
js/lib/ajax.js
diff --git a/js/lib/ajax.js b/js/lib/ajax.js index 6f6ae05..916581e 100644
a b elgg.action = function(action, options) { 193 193 //Always display system messages after actions 194 194 var custom_success = options.success || elgg.nullFunction; 195 195 options.success = function(json, two, three, four) { 196 json.output = json.output || null; 197 196 198 if (json && json.system_messages) { 197 199 elgg.register_error(json.system_messages.error); 198 200 elgg.system_message(json.system_messages.success);
