diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2014-08-04 09:55:57 +0200 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2014-08-04 09:55:57 +0200 |
commit | 010ba5ec2219d346c8e257f3f87b22b43c5959aa (patch) | |
tree | a5412f85bbedd124585408ee5a9b7be82d0824b7 | |
parent | 2600d08f65a8169c6f9414aca6517c828641ec23 (diff) | |
download | gitlab-ce-010ba5ec2219d346c8e257f3f87b22b43c5959aa.tar.gz |
Remove duplicated setupNoteForm method
-rw-r--r-- | app/assets/javascripts/notes.js.coffee | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/app/assets/javascripts/notes.js.coffee b/app/assets/javascripts/notes.js.coffee index 607b109dc0b..15367450958 100644 --- a/app/assets/javascripts/notes.js.coffee +++ b/app/assets/javascripts/notes.js.coffee @@ -405,30 +405,6 @@ class Notes form.addClass "js-discussion-note-form" ### - General note form setup. - - deactivates the submit button when text is empty - hides the preview button when text is empty - setup GFM auto complete - show the form - ### - setupNoteForm: (form) => - disableButtonIfEmptyField form.find(".js-note-text"), form.find(".js-comment-button") - form.removeClass "js-new-note-form" - form.removeClass "js-new-note-form" - GitLab.GfmAutoComplete.setup() - - # setup preview buttons - previewButton = form.find(".js-note-preview-button") - form.find(".js-note-text").on "input", -> - if $(this).val().trim() isnt "" - previewButton.removeClass("turn-off").addClass "turn-on" - else - previewButton.removeClass("turn-on").addClass "turn-off" - - form.show() - - ### Called when clicking on the "add a comment" button on the side of a diff line. Inserts a temporary row for the form below the line. |