don't remember what canPost was for....

This commit is contained in:
James Campos 2011-08-05 09:38:43 -07:00
parent 3ea6292204
commit 490b7fd17e
2 changed files with 5 additions and 5 deletions

View File

@ -2701,7 +2701,7 @@
}; };
main = { main = {
init: function() { 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('/'); 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') {
@ -2753,7 +2753,7 @@
$.setValue('lastChecked', now); $.setValue('lastChecked', now);
} }
$.addStyle(main.css); $.addStyle(main.css);
if ((form = $('form[name=post]')) && (canPost = !!$('#recaptcha_response_field'))) { if (form = $('form[name=post]')) {
Recaptcha.init(); Recaptcha.init();
$.bind(form, 'submit', qr.submit); $.bind(form, 'submit', qr.submit);
} }
@ -2791,7 +2791,7 @@
if (conf['Reply Hiding']) { if (conf['Reply Hiding']) {
replyHiding.init(); replyHiding.init();
} }
if (canPost && conf['Quick Reply']) { if (conf['Quick Reply'] && form) {
qr.init(); qr.init();
} }
if (conf['Report Button']) { if (conf['Report Button']) {

View File

@ -2144,7 +2144,7 @@ main =
$.addStyle main.css $.addStyle main.css
if (form = $ 'form[name=post]') and canPost = !!$ '#recaptcha_response_field' if form = $ 'form[name=post]'
Recaptcha.init() Recaptcha.init()
$.bind form, 'submit', qr.submit $.bind form, 'submit', qr.submit
@ -2186,7 +2186,7 @@ main =
if conf['Reply Hiding'] if conf['Reply Hiding']
replyHiding.init() replyHiding.init()
if canPost and conf['Quick Reply'] if conf['Quick Reply'] and form
qr.init() qr.init()
if conf['Report Button'] if conf['Report Button']