Less "awkward" qr links. Close #199
This commit is contained in:
parent
53c4568fb3
commit
164285ec16
@ -1192,7 +1192,7 @@
|
|||||||
if (!$.id('recaptcha_challenge_field_holder')) return;
|
if (!$.id('recaptcha_challenge_field_holder')) return;
|
||||||
if (conf['Hide Original Post Form']) {
|
if (conf['Hide Original Post Form']) {
|
||||||
link = $.el('h1', {
|
link = $.el('h1', {
|
||||||
innerHTML: "<a href=javascript:;>" + (g.REPLY ? 'Open the Quick Reply' : 'Create a New Thread') + "</a>"
|
innerHTML: "<a href=javascript:;>" + (g.REPLY ? 'Quick Reply' : 'New Thread') + "</a>"
|
||||||
});
|
});
|
||||||
$.on($('a', link), 'click', function() {
|
$.on($('a', link), 'click', function() {
|
||||||
qr.open();
|
qr.open();
|
||||||
|
|||||||
@ -868,7 +868,7 @@ qr =
|
|||||||
init: ->
|
init: ->
|
||||||
return unless $.id 'recaptcha_challenge_field_holder'
|
return unless $.id 'recaptcha_challenge_field_holder'
|
||||||
if conf['Hide Original Post Form']
|
if conf['Hide Original Post Form']
|
||||||
link = $.el 'h1', innerHTML: "<a href=javascript:;>#{if g.REPLY then 'Open the Quick Reply' else 'Create a New Thread'}</a>"
|
link = $.el 'h1', innerHTML: "<a href=javascript:;>#{if g.REPLY then 'Quick Reply' else 'New Thread'}</a>"
|
||||||
$.on $('a', link), 'click', ->
|
$.on $('a', link), 'click', ->
|
||||||
qr.open()
|
qr.open()
|
||||||
$('textarea', qr.el).focus()
|
$('textarea', qr.el).focus()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user