Commit d6b7599d authored by Phil Hughes's avatar Phil Hughes

Fixed failing JS

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