canPost
This commit is contained in:
parent
7ba86e79f6
commit
a2ab28afb3
@ -2761,10 +2761,10 @@
|
|||||||
if (g.REPLY && (id = location.hash.slice(1)) && /\d/.test(id[0]) && !$.id(id)) {
|
if (g.REPLY && (id = location.hash.slice(1)) && /\d/.test(id[0]) && !$.id(id)) {
|
||||||
scrollTo(0, d.body.scrollHeight);
|
scrollTo(0, d.body.scrollHeight);
|
||||||
}
|
}
|
||||||
if (conf['Auto Noko'] && form) {
|
if (conf['Auto Noko'] && canPost) {
|
||||||
form.action += '?noko';
|
form.action += '?noko';
|
||||||
}
|
}
|
||||||
if (conf['Cooldown'] && form) {
|
if (conf['Cooldown'] && canPost) {
|
||||||
cooldown.init();
|
cooldown.init();
|
||||||
}
|
}
|
||||||
if (conf['Image Expansion']) {
|
if (conf['Image Expansion']) {
|
||||||
@ -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'] && canPost) {
|
||||||
qr.init();
|
qr.init();
|
||||||
}
|
}
|
||||||
if (conf['Report Button']) {
|
if (conf['Report Button']) {
|
||||||
@ -2822,7 +2822,7 @@
|
|||||||
if (conf['Image Preloading']) {
|
if (conf['Image Preloading']) {
|
||||||
imgPreloading.init();
|
imgPreloading.init();
|
||||||
}
|
}
|
||||||
if (conf['Quick Reply'] && conf['Persistent QR'] && form) {
|
if (conf['Quick Reply'] && conf['Persistent QR'] && canPost) {
|
||||||
qr.persist();
|
qr.persist();
|
||||||
}
|
}
|
||||||
if (conf['Post in Title']) {
|
if (conf['Post in Title']) {
|
||||||
|
|||||||
@ -2144,7 +2144,8 @@ main =
|
|||||||
|
|
||||||
$.addStyle main.css
|
$.addStyle main.css
|
||||||
|
|
||||||
if (form = $ 'form[name=post]') and canPost = !!$ '#recaptcha_response_field'
|
#recaptcha may be blocked, eg by noscript
|
||||||
|
if (form = $ 'form[name=post]') and (canPost = !!$ '#recaptcha_response_field')
|
||||||
Recaptcha.init()
|
Recaptcha.init()
|
||||||
$.bind form, 'submit', qr.submit
|
$.bind form, 'submit', qr.submit
|
||||||
|
|
||||||
@ -2156,10 +2157,10 @@ main =
|
|||||||
if g.REPLY and (id = location.hash[1..]) and /\d/.test(id[0]) and !$.id(id)
|
if g.REPLY and (id = location.hash[1..]) and /\d/.test(id[0]) and !$.id(id)
|
||||||
scrollTo 0, d.body.scrollHeight
|
scrollTo 0, d.body.scrollHeight
|
||||||
|
|
||||||
if conf['Auto Noko'] and form
|
if conf['Auto Noko'] and canPost
|
||||||
form.action += '?noko'
|
form.action += '?noko'
|
||||||
|
|
||||||
if conf['Cooldown'] and form
|
if conf['Cooldown'] and canPost
|
||||||
cooldown.init()
|
cooldown.init()
|
||||||
|
|
||||||
if conf['Image Expansion']
|
if conf['Image Expansion']
|
||||||
@ -2186,7 +2187,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 canPost
|
||||||
qr.init()
|
qr.init()
|
||||||
|
|
||||||
if conf['Report Button']
|
if conf['Report Button']
|
||||||
@ -2217,7 +2218,7 @@ main =
|
|||||||
if conf['Image Preloading']
|
if conf['Image Preloading']
|
||||||
imgPreloading.init()
|
imgPreloading.init()
|
||||||
|
|
||||||
if conf['Quick Reply'] and conf['Persistent QR'] and form
|
if conf['Quick Reply'] and conf['Persistent QR'] and canPost
|
||||||
qr.persist()
|
qr.persist()
|
||||||
|
|
||||||
if conf['Post in Title']
|
if conf['Post in Title']
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user