Fix QR keybinds.
This commit is contained in:
parent
970fea92bb
commit
29ba27fc48
@ -900,7 +900,7 @@
|
|||||||
case conf.close:
|
case conf.close:
|
||||||
if (o = $('#overlay')) {
|
if (o = $('#overlay')) {
|
||||||
$.rm(o);
|
$.rm(o);
|
||||||
} else if (qr.qr) {
|
} else if (qr.el) {
|
||||||
qr.close();
|
qr.close();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -969,8 +969,8 @@
|
|||||||
if ((_ref3 = $('input[value=Previous]')) != null) _ref3.click();
|
if ((_ref3 = $('input[value=Previous]')) != null) _ref3.click();
|
||||||
break;
|
break;
|
||||||
case conf.submit:
|
case conf.submit:
|
||||||
if (qr.qr) {
|
if (qr.el) {
|
||||||
qr.submit.call($('form', qr.qr));
|
qr.submit.call($('form', qr.el));
|
||||||
} else {
|
} else {
|
||||||
$('.postarea form').submit();
|
$('.postarea form').submit();
|
||||||
}
|
}
|
||||||
@ -1068,8 +1068,8 @@
|
|||||||
if (quote) {
|
if (quote) {
|
||||||
return qr.quote.call($('.quotejs + a', $('.replyhl', thread) || thread));
|
return qr.quote.call($('.quotejs + a', $('.replyhl', thread) || thread));
|
||||||
} else {
|
} else {
|
||||||
if (qr.qr) {
|
if (qr.el) {
|
||||||
return $('textarea', qr.qr).focus();
|
return $('textarea', qr.el).focus();
|
||||||
} else {
|
} else {
|
||||||
return qr.dialog('', thread != null ? thread.firstChild.id : void 0);
|
return qr.dialog('', thread != null ? thread.firstChild.id : void 0);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -645,7 +645,7 @@ keybinds =
|
|||||||
when conf.close
|
when conf.close
|
||||||
if o = $ '#overlay'
|
if o = $ '#overlay'
|
||||||
$.rm o
|
$.rm o
|
||||||
else if qr.qr
|
else if qr.el
|
||||||
qr.close()
|
qr.close()
|
||||||
when conf.spoiler
|
when conf.spoiler
|
||||||
ta = e.target
|
ta = e.target
|
||||||
@ -697,8 +697,8 @@ keybinds =
|
|||||||
when conf.previousPage
|
when conf.previousPage
|
||||||
$('input[value=Previous]')?.click()
|
$('input[value=Previous]')?.click()
|
||||||
when conf.submit
|
when conf.submit
|
||||||
if qr.qr
|
if qr.el
|
||||||
qr.submit.call $ 'form', qr.qr
|
qr.submit.call $ 'form', qr.el
|
||||||
else
|
else
|
||||||
$('.postarea form').submit()
|
$('.postarea form').submit()
|
||||||
when conf.unreadCountTo0
|
when conf.unreadCountTo0
|
||||||
@ -745,8 +745,8 @@ keybinds =
|
|||||||
if quote
|
if quote
|
||||||
qr.quote.call $ '.quotejs + a', $('.replyhl', thread) or thread
|
qr.quote.call $ '.quotejs + a', $('.replyhl', thread) or thread
|
||||||
else
|
else
|
||||||
if qr.qr
|
if qr.el
|
||||||
$('textarea', qr.qr).focus()
|
$('textarea', qr.el).focus()
|
||||||
else
|
else
|
||||||
qr.dialog '', thread?.firstChild.id
|
qr.dialog '', thread?.firstChild.id
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user