Un-hide the QR and focus the captcha input when clicking on the low-captcha notification.
This commit is contained in:
parent
ae8e633ee3
commit
24762fd182
@ -1104,7 +1104,10 @@ QR =
|
|||||||
notif = new Notification 'Quick reply warning',
|
notif = new Notification 'Quick reply warning',
|
||||||
body: "You are running low on cached captchas. Cache count: #{captchasCount}."
|
body: "You are running low on cached captchas. Cache count: #{captchasCount}."
|
||||||
icon: Favicon.logo
|
icon: Favicon.logo
|
||||||
notif.onclick = -> window.focus()
|
notif.onclick = ->
|
||||||
|
QR.open()
|
||||||
|
QR.captcha.nodes.input.focus()
|
||||||
|
window.focus()
|
||||||
setTimeout ->
|
setTimeout ->
|
||||||
notif.close()
|
notif.close()
|
||||||
, 7 * $.SECOND
|
, 7 * $.SECOND
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user