Fixed failing JS

This commit is contained in:
Phil Hughes 2016-07-27 10:03:53 +01:00
parent 5a0cd0e947
commit d6b7599df4
1 changed files with 2 additions and 2 deletions

View File

@ -403,7 +403,7 @@
projectPath = $form.attr('data-project-path')
discussionId = $form.attr('data-discussion-id'),
mergeRequestId = $('input[name="noteable_iid"]', $form).val(),
namespace = `${namespacePath}/${projectPath}`;
namespace = namespacePath + '/' + projectPath;
if (ResolveService != null) {
ResolveService.toggleResolveForDiscussion(namespace, mergeRequestId, discussionId);
@ -606,7 +606,7 @@
} else if (DiffNotesApp) {
var $commentBtn = form.find('resolve-comment-btn');
$commentBtn
.attr(':discussion-id', `'${dataHolder.data("discussionId")}'`);
.attr(':discussion-id', dataHolder.data('discussionId'));
DiffNotesApp.$compile($commentBtn.get(0));
}