summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Sumaran <alfredo@gitlab.com>2016-08-05 17:09:21 -0500
committerAlfredo Sumaran <alfredo@gitlab.com>2016-08-05 17:19:01 -0500
commit26c1b72d8f63d1ef24738d5df43d2dfe9cb2cf68 (patch)
treed77d88532274d71ba9b0fcd11fcbd1a7a53ec915
parentf096cc0471267e2aee289b9b60212d5cb5d259af (diff)
downloadgitlab-ce-branch-permissions.tar.gz
Ensure we are looking for the right dropdown inside the form wrapperbranch-permissions
-rw-r--r--app/assets/javascripts/protected_branch_edit.js.es64
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',