Fix QR keybinds.

This commit is contained in:
Nicolas Stepien 2011-11-27 03:08:40 +01:00
parent 970fea92bb
commit 29ba27fc48
2 changed files with 10 additions and 10 deletions

View File

@ -900,7 +900,7 @@
case conf.close:
if (o = $('#overlay')) {
$.rm(o);
} else if (qr.qr) {
} else if (qr.el) {
qr.close();
}
break;
@ -969,8 +969,8 @@
if ((_ref3 = $('input[value=Previous]')) != null) _ref3.click();
break;
case conf.submit:
if (qr.qr) {
qr.submit.call($('form', qr.qr));
if (qr.el) {
qr.submit.call($('form', qr.el));
} else {
$('.postarea form').submit();
}
@ -1068,8 +1068,8 @@
if (quote) {
return qr.quote.call($('.quotejs + a', $('.replyhl', thread) || thread));
} else {
if (qr.qr) {
return $('textarea', qr.qr).focus();
if (qr.el) {
return $('textarea', qr.el).focus();
} else {
return qr.dialog('', thread != null ? thread.firstChild.id : void 0);
}

View File

@ -645,7 +645,7 @@ keybinds =
when conf.close
if o = $ '#overlay'
$.rm o
else if qr.qr
else if qr.el
qr.close()
when conf.spoiler
ta = e.target
@ -697,8 +697,8 @@ keybinds =
when conf.previousPage
$('input[value=Previous]')?.click()
when conf.submit
if qr.qr
qr.submit.call $ 'form', qr.qr
if qr.el
qr.submit.call $ 'form', qr.el
else
$('.postarea form').submit()
when conf.unreadCountTo0
@ -745,8 +745,8 @@ keybinds =
if quote
qr.quote.call $ '.quotejs + a', $('.replyhl', thread) or thread
else
if qr.qr
$('textarea', qr.qr).focus()
if qr.el
$('textarea', qr.el).focus()
else
qr.dialog '', thread?.firstChild.id