From f04e0fd2ae9e520987efb843fe8ff982dedaef60 Mon Sep 17 00:00:00 2001 From: Nicolas F Date: Sun, 17 Jun 2018 01:57:14 +0200 Subject: [PATCH] comments: fix editing for users with a CAPTCHA (#502) * comments: fix editing for users with a CAPTCHA My bad! * Update help.html --- nyaa/static/js/main.js | 3 +++ nyaa/templates/help.html | 2 +- nyaa/templates/view.html | 17 +++++++++++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/nyaa/static/js/main.js b/nyaa/static/js/main.js index 4bca446..4cb58df 100644 --- a/nyaa/static/js/main.js +++ b/nyaa/static/js/main.js @@ -118,6 +118,9 @@ $(document).ready(function() { $errorStatus.text(error); }).always(function() { $submitButton.removeAttr('disabled'); + if (grecaptcha) { + grecaptcha.reset(); + } $waitIndicator.hide(); }); }) diff --git a/nyaa/templates/help.html b/nyaa/templates/help.html index 47cbbf5..9b9011e 100644 --- a/nyaa/templates/help.html +++ b/nyaa/templates/help.html @@ -14,7 +14,7 @@ - Red entries (remake) are torrents that matching any of the following: + Red entries (remake) are torrents that match any of the following: