From eec5832a655e7be4d2289e3544fd4e60b68b9659 Mon Sep 17 00:00:00 2001 From: Ralf Teusner Date: Tue, 4 Aug 2015 15:16:06 +0200 Subject: [PATCH] allow requesting comments only once per submission --- app/assets/javascripts/editor.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/assets/javascripts/editor.js b/app/assets/javascripts/editor.js index 11678979..ddbbc36e 100644 --- a/app/assets/javascripts/editor.js +++ b/app/assets/javascripts/editor.js @@ -1004,6 +1004,8 @@ $(function() { }) showSpinner($('#request-for-comments')) + // hide button until next submission is created + $('#request-for-comments').toggle(false); } var initializeCodePilot = function() {