Reset the QR status on connection error.

This commit is contained in:
Nicolas Stepien 2012-06-03 07:33:35 +02:00
parent d636d27dfd
commit d235346496
2 changed files with 2 additions and 0 deletions

View File

@ -2058,6 +2058,7 @@
return QR.response(this.response);
},
onerror: function() {
QR.status();
return QR.error($.el('a', {
href: '//www.4chan.org/banned',
target: '_blank',

View File

@ -1556,6 +1556,7 @@ QR =
onerror: ->
# Connection error, or
# CORS disabled error on www.4chan.org/banned
QR.status()
QR.error $.el 'a',
href: '//www.4chan.org/banned'
target: '_blank'