don't remember what canPost was for....
This commit is contained in:
parent
3ea6292204
commit
490b7fd17e
@ -2701,7 +2701,7 @@
|
||||
};
|
||||
main = {
|
||||
init: function() {
|
||||
var DAY, callback, canPost, cutoff, form, hiddenThreads, id, lastChecked, now, op, pathname, 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, table, temp, timestamp, tzOffset, _i, _j, _k, _l, _len, _len2, _len3, _len4, _ref2, _ref3, _ref4, _ref5, _ref6;
|
||||
pathname = location.pathname.substring(1).split('/');
|
||||
g.BOARD = pathname[0], temp = pathname[1];
|
||||
if (temp === 'res') {
|
||||
@ -2753,7 +2753,7 @@
|
||||
$.setValue('lastChecked', now);
|
||||
}
|
||||
$.addStyle(main.css);
|
||||
if ((form = $('form[name=post]')) && (canPost = !!$('#recaptcha_response_field'))) {
|
||||
if (form = $('form[name=post]')) {
|
||||
Recaptcha.init();
|
||||
$.bind(form, 'submit', qr.submit);
|
||||
}
|
||||
@ -2791,7 +2791,7 @@
|
||||
if (conf['Reply Hiding']) {
|
||||
replyHiding.init();
|
||||
}
|
||||
if (canPost && conf['Quick Reply']) {
|
||||
if (conf['Quick Reply'] && form) {
|
||||
qr.init();
|
||||
}
|
||||
if (conf['Report Button']) {
|
||||
|
||||
@ -2144,7 +2144,7 @@ main =
|
||||
|
||||
$.addStyle main.css
|
||||
|
||||
if (form = $ 'form[name=post]') and canPost = !!$ '#recaptcha_response_field'
|
||||
if form = $ 'form[name=post]'
|
||||
Recaptcha.init()
|
||||
$.bind form, 'submit', qr.submit
|
||||
|
||||
@ -2186,7 +2186,7 @@ main =
|
||||
if conf['Reply Hiding']
|
||||
replyHiding.init()
|
||||
|
||||
if canPost and conf['Quick Reply']
|
||||
if conf['Quick Reply'] and form
|
||||
qr.init()
|
||||
|
||||
if conf['Report Button']
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user