Hide old captcha image while reloading.
This commit is contained in:
parent
d374b39ebd
commit
6c639fe20f
@ -187,6 +187,7 @@ Captcha.noscript =
|
|||||||
unless img
|
unless img
|
||||||
img = @nodes.img = new Image
|
img = @nodes.img = new Image
|
||||||
$.one img, 'load', @afterSetup.bind @
|
$.one img, 'load', @afterSetup.bind @
|
||||||
|
$.on img, 'load', -> @hidden = false
|
||||||
$.add container, img
|
$.add container, img
|
||||||
img.src = src
|
img.src = src
|
||||||
input.value = ''
|
input.value = ''
|
||||||
@ -220,6 +221,7 @@ Captcha.noscript =
|
|||||||
reload: ->
|
reload: ->
|
||||||
@nodes.iframe.src = @iframeURL
|
@nodes.iframe.src = @iframeURL
|
||||||
@occupied = true
|
@occupied = true
|
||||||
|
@nodes.img?.hidden = true
|
||||||
|
|
||||||
keydown: (e) ->
|
keydown: (e) ->
|
||||||
if e.keyCode is 8 and not @nodes.input.value
|
if e.keyCode is 8 and not @nodes.input.value
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user