diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-29 16:10:35 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-29 16:10:35 +0000 |
commit | 9d8a1ea11a1851958393d8e680424d87aa87472d (patch) | |
tree | a548d6fecca06ce09c9fcb9272803ca7f9da4a35 /js | |
parent | 9f856937caf1ac2cab02fbe5aa73b0c3bb84f84c (diff) | |
download | elgg-9d8a1ea11a1851958393d8e680424d87aa87472d.tar.gz elgg-9d8a1ea11a1851958393d8e680424d87aa87472d.tar.bz2 |
Fixed auto-display of system errors in ajax actions. Fixed docs for system_messages(). Blech...that needs cleaned up.
git-svn-id: http://code.elgg.org/elgg/trunk@8879 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'js')
-rw-r--r-- | js/lib/ajax.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/lib/ajax.js b/js/lib/ajax.js index 5e290df6f..6f6ae052f 100644 --- a/js/lib/ajax.js +++ b/js/lib/ajax.js @@ -194,7 +194,7 @@ elgg.action = function(action, options) { var custom_success = options.success || elgg.nullFunction; options.success = function(json, two, three, four) { if (json && json.system_messages) { - elgg.register_error(json.system_messages.errors); + elgg.register_error(json.system_messages.error); elgg.system_message(json.system_messages.success); } |