fix failing rspec build

This commit is contained in:
Mike Greiling 2017-01-28 16:30:43 -06:00
parent 5e1243b0d6
commit 356368d959

View file

@ -110,9 +110,8 @@ require('./merge_request_tabs');
};
MergeRequest.prototype.initCommitMessageListeners = function() {
$(document).on('click', 'a.js-with-description-link', function(e) {
var textarea = $('textarea.js-commit-message');
$('a.js-with-description-link').on('click', function(e) {
e.preventDefault();
textarea.val(textarea.data('messageWithDescription'));
@ -120,7 +119,8 @@ require('./merge_request_tabs');
$('p.js-without-description-hint').show();
});
$('a.js-without-description-link').on('click', function(e) {
$(document).on('click', 'a.js-without-description-link', function(e) {
var textarea = $('textarea.js-commit-message');
e.preventDefault();
textarea.val(textarea.data('messageWithoutDescription'));