move qr.persist into main
This commit is contained in:
parent
c6e021c309
commit
4ef9561520
@ -1352,12 +1352,6 @@
|
|||||||
quote = $('a.quotejs:not(:first-child)', root);
|
quote = $('a.quotejs:not(:first-child)', root);
|
||||||
return $.bind(quote, 'click', qr.cb.quote);
|
return $.bind(quote, 'click', qr.cb.quote);
|
||||||
},
|
},
|
||||||
persist: function() {
|
|
||||||
qr.dialog();
|
|
||||||
if (conf['Auto Hide QR']) {
|
|
||||||
return $('#autohide', qr.el).checked = true;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
push: function() {
|
push: function() {
|
||||||
this.nextSibling.textContent = qr.captcha.push({
|
this.nextSibling.textContent = qr.captcha.push({
|
||||||
challenge: $('#recaptcha_challenge_field', qr.el).value,
|
challenge: $('#recaptcha_challenge_field', qr.el).value,
|
||||||
@ -2808,7 +2802,10 @@
|
|||||||
imgPreloading.init();
|
imgPreloading.init();
|
||||||
}
|
}
|
||||||
if (conf['Quick Reply'] && conf['Persistent QR'] && canPost) {
|
if (conf['Quick Reply'] && conf['Persistent QR'] && canPost) {
|
||||||
qr.persist();
|
qr.dialog();
|
||||||
|
if (conf['Auto Hide QR']) {
|
||||||
|
$('#autohide', qr.el).checked = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (conf['Post in Title']) {
|
if (conf['Post in Title']) {
|
||||||
titlePost.init();
|
titlePost.init();
|
||||||
|
|||||||
@ -970,6 +970,7 @@ qr =
|
|||||||
# error handling
|
# error handling
|
||||||
# persistent captcha
|
# persistent captcha
|
||||||
# code review
|
# code review
|
||||||
|
# rm Recaptcha
|
||||||
init: ->
|
init: ->
|
||||||
g.callbacks.push qr.node
|
g.callbacks.push qr.node
|
||||||
$.bind window, 'message', qr.message
|
$.bind window, 'message', qr.message
|
||||||
@ -1094,10 +1095,6 @@ qr =
|
|||||||
quote = $ 'a.quotejs:not(:first-child)', root
|
quote = $ 'a.quotejs:not(:first-child)', root
|
||||||
$.bind quote, 'click', qr.cb.quote
|
$.bind quote, 'click', qr.cb.quote
|
||||||
|
|
||||||
persist: ->
|
|
||||||
qr.dialog()
|
|
||||||
$('#autohide', qr.el).checked = true if conf['Auto Hide QR']
|
|
||||||
|
|
||||||
push: ->
|
push: ->
|
||||||
@nextSibling.textContent = qr.captcha.push
|
@nextSibling.textContent = qr.captcha.push
|
||||||
challenge: $('#recaptcha_challenge_field', qr.el).value
|
challenge: $('#recaptcha_challenge_field', qr.el).value
|
||||||
@ -2215,7 +2212,9 @@ main =
|
|||||||
imgPreloading.init()
|
imgPreloading.init()
|
||||||
|
|
||||||
if conf['Quick Reply'] and conf['Persistent QR'] and canPost
|
if conf['Quick Reply'] and conf['Persistent QR'] and canPost
|
||||||
qr.persist()
|
qr.dialog()
|
||||||
|
if conf['Auto Hide QR']
|
||||||
|
$('#autohide', qr.el).checked = true
|
||||||
|
|
||||||
if conf['Post in Title']
|
if conf['Post in Title']
|
||||||
titlePost.init()
|
titlePost.init()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user