Commit a9186d07 authored by Luke "Jared" Bennett's avatar Luke "Jared" Bennett

Fixed close button text

parent 5200686b
......@@ -25,6 +25,10 @@ class CommentTypeToggle {
inputSetterConfig.push({
input: this.secondaryButton,
valueAttribute: 'data-secondary-button-text',
}, {
input: this.secondaryButton,
valueAttribute: 'data-secondary-button-text',
inputAttribute: 'data-alternative-text',
});
}
......
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment