'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':
return QR.status(data);
case 'banned':
QR.error('You are banned.', $.el('a', {
href: 'http://www.4chan.org/banned',
QR.error('_', $.el('a', {
href: '//www.4chan.org/banned',
target: '_blank',
textContent: 'You are banned.'
textContent: 'Connection error, or you are banned.'
}));
return QR.status({
ready: true,

View File

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

View File

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