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:
parent
125abfd4b2
commit
1b3b4f4e34
2 changed files with 5 additions and 1 deletions
|
@ -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();
|
||||
|
|
4
changelogs/unreleased/merge-dropdown-this-context.yml
Normal file
4
changelogs/unreleased/merge-dropdown-this-context.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
title: Fixed bug where links in merge dropdown wouldn't work
|
||||
merge_request:
|
||||
author:
|
Loading…
Reference in a new issue