summaryrefslogtreecommitdiff
path: root/app/views/notes/create.js.haml
diff options
context:
space:
mode:
authorgitlabhq <m@gitlabhq.com>2011-10-17 20:05:47 +0300
committergitlabhq <m@gitlabhq.com>2011-10-17 20:05:47 +0300
commit2daa6161fd08e18bdf7f1ad0f30a83a58226543e (patch)
tree2056331781844770a9db6ed6eb2d23a1140e0a3e /app/views/notes/create.js.haml
parent74a89d9ed6e79d6172ac2638a334bb31b9fea7da (diff)
downloadgitlab-ce-2daa6161fd08e18bdf7f1ad0f30a83a58226543e.tar.gz
prevent double note submit
Diffstat (limited to 'app/views/notes/create.js.haml')
-rw-r--r--app/views/notes/create.js.haml3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/notes/create.js.haml b/app/views/notes/create.js.haml
index 47cff1d8834..0af548ff855 100644
--- a/app/views/notes/create.js.haml
+++ b/app/views/notes/create.js.haml
@@ -6,3 +6,6 @@
- else
:plain
$("#new_note").replaceWith("#{escape_javascript(render('form'))}");
+
+:plain
+ $("#submit_note").removeAttr("disabled");