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