diff options
Diffstat (limited to 'javascript/ajax.js')
-rwxr-xr-x | javascript/ajax.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/javascript/ajax.js b/javascript/ajax.js index 38a9111..9b5db5e 100755 --- a/javascript/ajax.js +++ b/javascript/ajax.js @@ -18,10 +18,11 @@ function alert_ajax(xhr, session) var streamstatus = null; var items = docXML.getElementsByTagName("streamstatus"); streamstatus = items.item(0).firstChild.data; - if ( streamstatus == 'error' ) + if ( streamstatus == 'error' ) { var items2 = docXML.getElementsByTagName("message"); var errmessage = items2.item(0).firstChild.data; errorMsg(errmessage); + } else swapPic(session); } |