fix #140: breaks on closed threads
This commit is contained in:
parent
c54d5de6b6
commit
ab358bd17b
@ -2360,7 +2360,7 @@
|
|||||||
};
|
};
|
||||||
main = {
|
main = {
|
||||||
init: function() {
|
init: function() {
|
||||||
var DAY, callback, cutoff, hiddenThreads, id, lastChecked, now, op, pathname, reply, table, temp, timestamp, tzOffset, _i, _j, _k, _l, _len, _len2, _len3, _len4, _ref2, _ref3, _ref4, _ref5, _ref6;
|
var DAY, callback, cutoff, form, hiddenThreads, id, lastChecked, now, op, pathname, reply, table, temp, timestamp, tzOffset, _i, _j, _k, _l, _len, _len2, _len3, _len4, _ref2, _ref3, _ref4, _ref5, _ref6;
|
||||||
pathname = location.pathname.substring(1).split('/');
|
pathname = location.pathname.substring(1).split('/');
|
||||||
g.BOARD = pathname[0], temp = pathname[1];
|
g.BOARD = pathname[0], temp = pathname[1];
|
||||||
if (temp === 'res') {
|
if (temp === 'res') {
|
||||||
@ -2412,8 +2412,10 @@
|
|||||||
$.setValue('lastChecked', now);
|
$.setValue('lastChecked', now);
|
||||||
}
|
}
|
||||||
$.addStyle(main.css);
|
$.addStyle(main.css);
|
||||||
Recaptcha.init();
|
if (form = $('form[name=post]')) {
|
||||||
$.bind($('form[name=post]'), 'submit', qr.cb.submit);
|
Recaptcha.init();
|
||||||
|
$.bind(form, 'submit', qr.cb.submit);
|
||||||
|
}
|
||||||
if ($.config('Cooldown')) {
|
if ($.config('Cooldown')) {
|
||||||
qr.cooldown();
|
qr.cooldown();
|
||||||
}
|
}
|
||||||
@ -2438,7 +2440,7 @@
|
|||||||
if ($.config('Reply Hiding')) {
|
if ($.config('Reply Hiding')) {
|
||||||
replyHiding.init();
|
replyHiding.init();
|
||||||
}
|
}
|
||||||
if ($.config('Quick Reply')) {
|
if (form && $.config('Quick Reply')) {
|
||||||
qr.init();
|
qr.init();
|
||||||
}
|
}
|
||||||
if ($.config('Report Button')) {
|
if ($.config('Report Button')) {
|
||||||
|
|||||||
@ -1840,9 +1840,9 @@ main =
|
|||||||
|
|
||||||
$.addStyle main.css
|
$.addStyle main.css
|
||||||
|
|
||||||
Recaptcha.init()
|
if form = $ 'form[name=post]'
|
||||||
|
Recaptcha.init()
|
||||||
$.bind $('form[name=post]'), 'submit', qr.cb.submit
|
$.bind form, 'submit', qr.cb.submit
|
||||||
|
|
||||||
#major features
|
#major features
|
||||||
if $.config 'Cooldown'
|
if $.config 'Cooldown'
|
||||||
@ -1869,7 +1869,7 @@ main =
|
|||||||
if $.config 'Reply Hiding'
|
if $.config 'Reply Hiding'
|
||||||
replyHiding.init()
|
replyHiding.init()
|
||||||
|
|
||||||
if $.config 'Quick Reply'
|
if form and $.config 'Quick Reply'
|
||||||
qr.init()
|
qr.init()
|
||||||
|
|
||||||
if $.config 'Report Button'
|
if $.config 'Report Button'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user