diff options
author | Alfredo Sumaran <alfredo@gitlab.com> | 2016-08-05 17:09:21 -0500 |
---|---|---|
committer | Alfredo Sumaran <alfredo@gitlab.com> | 2016-08-05 17:19:01 -0500 |
commit | 26c1b72d8f63d1ef24738d5df43d2dfe9cb2cf68 (patch) | |
tree | d77d88532274d71ba9b0fcd11fcbd1a7a53ec915 /app/assets | |
parent | f096cc0471267e2aee289b9b60212d5cb5d259af (diff) | |
download | gitlab-ce-26c1b72d8f63d1ef24738d5df43d2dfe9cb2cf68.tar.gz |
Ensure we are looking for the right dropdown inside the form wrapperbranch-permissions
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/protected_branch_edit.js.es6 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/protected_branch_edit.js.es6 b/app/assets/javascripts/protected_branch_edit.js.es6 index a549e4a1985..8d42e268ebc 100644 --- a/app/assets/javascripts/protected_branch_edit.js.es6 +++ b/app/assets/javascripts/protected_branch_edit.js.es6 @@ -28,8 +28,8 @@ } onSelect() { - const $allowedToMergeInput = $(`input[name="${this.$allowedToMergeDropdown.data('fieldName')}"]`); - const $allowedToPushInput = $(`input[name="${this.$allowedToPushDropdown.data('fieldName')}"]`); + const $allowedToMergeInput = this.$wrap.find(`input[name="${this.$allowedToMergeDropdown.data('fieldName')}"]`); + const $allowedToPushInput = this.$wrap.find(`input[name="${this.$allowedToPushDropdown.data('fieldName')}"]`); $.ajax({ type: 'POST', |