'Fix' ban error message, reclose #325.

This commit is contained in:
Nicolas Stepien 2012-03-29 02:58:58 +02:00
parent 69c69fe91b
commit 13e2898f89
3 changed files with 7 additions and 6 deletions

View File

@ -1995,10 +1995,10 @@
case 'status': case 'status':
return QR.status(data); return QR.status(data);
case 'banned': case 'banned':
QR.error('You are banned.', $.el('a', { QR.error('_', $.el('a', {
href: 'http://www.4chan.org/banned', href: '//www.4chan.org/banned',
target: '_blank', target: '_blank',
textContent: 'You are banned.' textContent: 'Connection error, or you are banned.'
})); }));
return QR.status({ return QR.status({
ready: true, ready: true,

View File

@ -1,6 +1,7 @@
master master
- Mayhem - Mayhem
Now works when using https. Now works when using https.
Ban support improvements and fixes.
2.29.1 2.29.1
- Mayhem - Mayhem

View File

@ -1677,10 +1677,10 @@ QR =
when 'status' when 'status'
QR.status data QR.status data
when 'banned' when 'banned'
QR.error 'You are banned.', $.el 'a', QR.error '_', $.el 'a',
href: 'http://www.4chan.org/banned' href: '//www.4chan.org/banned'
target: '_blank' target: '_blank'
textContent: 'You are banned.' textContent: 'Connection error, or you are banned.'
# Disable iframe reloading # Disable iframe reloading
QR.status ready: true, banned: true QR.status ready: true, banned: true
else else