From 24762fd1825b4336f9e65f5bcb5d1cc977573a96 Mon Sep 17 00:00:00 2001 From: Mayhem Date: Wed, 21 Aug 2013 22:37:47 +0200 Subject: [PATCH] Un-hide the QR and focus the captcha input when clicking on the low-captcha notification. --- src/Posting/QR.coffee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Posting/QR.coffee b/src/Posting/QR.coffee index 461b338d4..eb88f66c8 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -1104,7 +1104,10 @@ QR = notif = new Notification 'Quick reply warning', body: "You are running low on cached captchas. Cache count: #{captchasCount}." icon: Favicon.logo - notif.onclick = -> window.focus() + notif.onclick = -> + QR.open() + QR.captcha.nodes.input.focus() + window.focus() setTimeout -> notif.close() , 7 * $.SECOND