From 9d8a1ea11a1851958393d8e680424d87aa87472d Mon Sep 17 00:00:00 2001 From: brettp Date: Tue, 29 Mar 2011 16:10:35 +0000 Subject: 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 --- js/lib/ajax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js') 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); } -- cgit v1.2.3