Fixed bug with merge immediately button would not work

This was caused by using 'this' in a fat arrow function, so 'this' would not equal the jQuery element
This commit is contained in:
Phil Hughes 2017-01-22 11:39:51 +00:00
parent 125abfd4b2
commit 1b3b4f4e34
2 changed files with 5 additions and 1 deletions

View file

@ -30,7 +30,7 @@
.off('click', '.js-merge-dropdown a')
.on('click', '.js-merge-dropdown a', (e) => {
e.preventDefault();
$(this).closest('form').submit();
$(e.target).closest('form').submit();
});
if ($('.rebase-in-progress').length) {
merge_request_widget.rebaseInProgress();

View file

@ -0,0 +1,4 @@
---
title: Fixed bug where links in merge dropdown wouldn't work
merge_request:
author: