summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/notes.js
diff options
context:
space:
mode:
authorLuke "Jared" Bennett <lbennett@gitlab.com>2017-04-06 10:28:25 +0100
committerLuke "Jared" Bennett <lbennett@gitlab.com>2017-04-06 10:28:25 +0100
commita9186d07e9b0b678450403b35028dc058299c74d (patch)
tree57e1bdc75037098937b4e7040b0a4c6fdececead /app/assets/javascripts/notes.js
parent5200686bd980751d73738fdecd8232b682a7fcdc (diff)
downloadgitlab-ce-a9186d07e9b0b678450403b35028dc058299c74d.tar.gz
Fixed close button text
Diffstat (limited to 'app/assets/javascripts/notes.js')
-rw-r--r--app/assets/javascripts/notes.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/notes.js b/app/assets/javascripts/notes.js
index ee62ca2fbfb..e22232af800 100644
--- a/app/assets/javascripts/notes.js
+++ b/app/assets/javascripts/notes.js
@@ -149,9 +149,9 @@ require('./task_list');
this.commentTypeToggle = new CommentTypeToggle(
form.querySelector('.js-comment-type-dropdown .dropdown-toggle'),
form.querySelector('.js-comment-type-dropdown .dropdown-menu'),
- document.querySelector('.timeline-content-form #note_type'),
+ document.querySelector('.js-main-target-form #note_type'),
form.querySelector('.js-comment-type-dropdown .js-comment-submit-button'),
- document.querySelector('.js-note-target-close'),
+ document.querySelector('.js-main-target-form .js-note-target-close'),
);
this.commentTypeToggle.initDroplab();
@@ -949,7 +949,7 @@ require('./task_list');
discardbtn = form.find('.js-note-discard');
if (textarea.val().trim().length > 0) {
reopentext = reopenbtn.data('alternative-text');
- closetext = closebtn.data('alternative-text');
+ closetext = closebtn.attr('data-alternative-text');
if (reopenbtn.text() !== reopentext) {
reopenbtn.text(reopentext);
}