summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xjavascript/ajax.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/javascript/ajax.js b/javascript/ajax.js
index 2120bbb..38a9111 100755
--- a/javascript/ajax.js
+++ b/javascript/ajax.js
@@ -18,10 +18,10 @@ function alert_ajax(xhr, session)
var streamstatus = null;
var items = docXML.getElementsByTagName("streamstatus");
streamstatus = items.item(0).firstChild.data;
- var items2 = docXML.getElementsByTagName("message");
- var errmessage = items2.item(0).firstChild.data;
if ( streamstatus == 'error' )
- errorMsg(errmessage);
+ var items2 = docXML.getElementsByTagName("message");
+ var errmessage = items2.item(0).firstChild.data;
+ errorMsg(errmessage);
else
swapPic(session);
}