navigate to "#ERROR" on urb.wALL blit

This commit is contained in:
Anton Dyudin 2016-03-03 11:38:49 -08:00
parent a0358c17d9
commit 73a060be5e

View File

@ -110,6 +110,7 @@ window.urb.send = function(data,params,cb) { // or send(data, cb)
this.qreq('post',url,params,true,function(err,data) {
/* if(err) { $send.seqn--; }
else */ if(data && data.data.fail && urb.wall !== false)
document.location = "#ERROR"
document.write("<pre>"+JSON.stringify(params.xyro)+"\n"
+data.data.mess+"</pre>") // XX
if(cb) { cb.apply(this,arguments); }