Add the banned page link in QR connection errors. #932

This commit is contained in:
Nicolas Stepien 2013-03-24 03:25:07 +01:00
parent a599d2af57
commit e0cab6e8b3

View File

@ -872,12 +872,14 @@ QR =
callbacks = callbacks =
onload: QR.response onload: QR.response
onerror: -> onerror: ->
# Connection error, or
# www.4chan.org/banned
delete QR.req delete QR.req
post.unlock() post.unlock()
QR.cooldown.auto = false QR.cooldown.auto = false
QR.status() QR.status()
# Connection error. QR.error $.el 'span',
QR.error 'Network error.' innerHTML: 'Connection error. You may have been <a href=//www.4chan.org/banned target=_blank>banned</a>.'
opts = opts =
form: $.formData postData form: $.formData postData
upCallbacks: upCallbacks: