]> git.openstreetmap.org Git - osqa.git/commitdiff
be able to execute JavaScript post-action commands even if the success status equals...
authorjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Fri, 23 Sep 2011 14:46:37 +0000 (14:46 +0000)
committerjordan <jordan@0cfe37f9-358a-4d5e-be75-b63607b5c754>
Fri, 23 Sep 2011 14:46:37 +0000 (14:46 +0000)
git-svn-id: http://svn.osqa.net/svnroot/osqa/trunk@1176 0cfe37f9-358a-4d5e-be75-b63607b5c754

forum/skins/default/media/js/osqa.main.js

index 0c16eeabed6e49166e8ef477d51db2c313947df6..8fb4d6369347b49a0e36b60f4eb9e17d15eeb259 100644 (file)
@@ -331,7 +331,8 @@ function process_ajax_response(data, evt, callback) {
     if (!data.success && data['error_message'] != undefined) {\r
         show_message(evt, data.error_message, function() {if (callback) callback(true);});\r
         end_command(false);\r
-    } else if (typeof data['commands'] != undefined){\r
+    }\r
+    if (typeof data['commands'] != undefined){\r
         for (var command in data.commands) {\r
             response_commands[command].apply(null, data.commands[command])\r
 \r