summaryrefslogtreecommitdiff
path: root/app/views/projects
diff options
context:
space:
mode:
authorAlfredo Sumaran <alfredo@gitlab.com>2017-04-06 01:31:44 -0500
committerAlfredo Sumaran <alfredo@gitlab.com>2017-04-06 01:31:44 -0500
commit5200686bd980751d73738fdecd8232b682a7fcdc (patch)
treed7c5035df1cbfe7312f34618a829201723d97865 /app/views/projects
parentd9dedac8589c8ec7f41354d3920ae5f9feb44345 (diff)
downloadgitlab-ce-5200686bd980751d73738fdecd8232b682a7fcdc.tar.gz
Disable submit button and dropdown when submitt comment form
Diffstat (limited to 'app/views/projects')
-rw-r--r--app/views/projects/notes/_comment_type_button.html.haml3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/views/projects/notes/_comment_type_button.html.haml b/app/views/projects/notes/_comment_type_button.html.haml
index 078b606eda8..2a851d57fd6 100644
--- a/app/views/projects/notes/_comment_type_button.html.haml
+++ b/app/views/projects/notes/_comment_type_button.html.haml
@@ -1,8 +1,7 @@
- noteable_type = @note.noteable_type
.pull-left.btn-group.append-right-10.comment-type-dropdown.js-comment-type-dropdown
- %button.btn.btn-nr.btn-create.comment-btn.js-comment-button.js-comment-submit-button
- Comment
+ %input.btn.btn-nr.btn-create.comment-btn.js-comment-button.js-comment-submit-button{ type: 'submit', value: 'Comment' }
- if @note.can_be_discussion_note?
= button_tag type: 'button', class: 'btn btn-nr dropdown-toggle comment-btn js-note-new-discussion', data: { 'dropdown-trigger' => '#resolvable-comment-menu' } do
= icon('caret-down')