Should fix some keybinds

This commit is contained in:
Nicolas Stepien 2011-09-27 02:57:53 +02:00
parent d4fbe602d9
commit 049f75b789
2 changed files with 8 additions and 8 deletions

View File

@ -890,8 +890,8 @@
case conf.close:
if (o = $('#overlay')) {
$.rm(o);
} else if (qr.el) {
qr.close();
} else if (QR.qr) {
QR.close();
}
break;
case conf.spoiler:
@ -965,8 +965,8 @@
}
break;
case conf.submit:
if (qr.el) {
qr.submit.call($('form', qr.el));
if (QR.qr) {
QR.submit.call($('form', QR.qr));
} else {
$('.postarea form').submit();
}

View File

@ -625,8 +625,8 @@ keybinds =
when conf.close
if o = $ '#overlay'
$.rm o
else if qr.el
qr.close()
else if QR.qr
QR.close()
when conf.spoiler
ta = e.target
return unless ta.nodeName is 'TEXTAREA'
@ -677,8 +677,8 @@ keybinds =
when conf.previousPage
$('input[value=Previous]')?.click()
when conf.submit
if qr.el
qr.submit.call $ 'form', qr.el
if QR.qr
QR.submit.call $ 'form', QR.qr
else
$('.postarea form').submit()
when conf.unreadCountTo0