summaryrefslogtreecommitdiff
path: root/app/views/projects/notes
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2014-08-04 20:29:17 +0200
committerRobert Schilling <rschilling@student.tugraz.at>2014-08-04 20:29:17 +0200
commit15c682fcb01807b8c7c857aba213f2f14904083d (patch)
treeff25bcf013f35eb9aab396fc1be51761133c57e8 /app/views/projects/notes
parentd4f5af820f2fdb442404804859c84d2ef21794d9 (diff)
downloadgitlab-ce-15c682fcb01807b8c7c857aba213f2f14904083d.tar.gz
Disable 'Save changes' button if input is empty, fixes #6351
Diffstat (limited to 'app/views/projects/notes')
-rw-r--r--app/views/projects/notes/_note.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/notes/_note.html.haml b/app/views/projects/notes/_note.html.haml
index 2fd8cb6d489..5e84aed0cc4 100644
--- a/app/views/projects/notes/_note.html.haml
+++ b/app/views/projects/notes/_note.html.haml
@@ -38,10 +38,10 @@
= f.text_area :note, class: 'note_text js-note-text js-gfm-input turn-on'
.form-actions.clearfix
- = f.submit 'Save changes', class: "btn btn-primary btn-save"
+ = f.submit 'Save changes', class: "btn btn-primary btn-save js-comment-button"
.note-form-option
- %a.choose-btn.btn.btn-small.js-choose-note-attachment-button
+ %a.choose-btn.btn.js-choose-note-attachment-button
%i.icon-paper-clip
%span Choose File ...
&nbsp;