summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Sumaran <alfredo@gitlab.com>2016-08-05 15:26:53 -0500
committerAlfredo Sumaran <alfredo@gitlab.com>2016-08-05 17:19:01 -0500
commitf9378bad06688bb4e1428d0b77debd9c6966a6ad (patch)
tree80382c9b28a910f6153ab9844dad2d095f4df2f9
parentaf8a567a6386fdb0c08644ca87e98999da6e3146 (diff)
downloadgitlab-ce-f9378bad06688bb4e1428d0b77debd9c6966a6ad.tar.gz
Refine selector for form submit button
-rw-r--r--app/assets/javascripts/protected_branch_create.js.es62
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/protected_branch_create.js.es6 b/app/assets/javascripts/protected_branch_create.js.es6
index 6942b6c36d6..00e20a03b04 100644
--- a/app/assets/javascripts/protected_branch_create.js.es6
+++ b/app/assets/javascripts/protected_branch_create.js.es6
@@ -48,7 +48,7 @@
const $allowedToPushInput = this.$wrap.find('input[name="protected_branch[push_access_level_attributes][access_level]"]');
if ($branchInput.val() && $allowedToMergeInput.val() && $allowedToPushInput.val()){
- this.$form.find('[type="submit"]').removeAttr('disabled');
+ this.$form.find('input[type="submit"]').removeAttr('disabled');
}
}
}