diff options
author | Jose Ivan Vargas <jvargas@gitlab.com> | 2017-10-04 16:56:20 -0500 |
---|---|---|
committer | Jose Ivan Vargas <jvargas@gitlab.com> | 2017-10-04 16:56:20 -0500 |
commit | 91384251bbc675a3a5b4b16b781f2811d6cab959 (patch) | |
tree | 65ab8ee89926bd1dc231f02715e98285287c1cd7 | |
parent | a2dcf052da82bdb1dd7064dd99956fe2be469dd1 (diff) | |
download | gitlab-ce-32163-protected-branch-form-should-have-sane-defaults-for-dropdowns.tar.gz |
address-code-styling32163-protected-branch-form-should-have-sane-defaults-for-dropdowns
-rw-r--r-- | app/assets/javascripts/protected_branches/protected_branch_create.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/assets/javascripts/protected_branches/protected_branch_create.js b/app/assets/javascripts/protected_branches/protected_branch_create.js index efc612a3dc7..0a9fdb074e5 100644 --- a/app/assets/javascripts/protected_branches/protected_branch_create.js +++ b/app/assets/javascripts/protected_branches/protected_branch_create.js @@ -51,10 +51,10 @@ export default class ProtectedBranchCreate { const $allowedToMergeInput = this.$form.find('input[name="protected_branch[merge_access_levels_attributes][0][access_level]"]'); const $allowedToPushInput = this.$form.find('input[name="protected_branch[push_access_levels_attributes][0][access_level]"]'); const completedForm = !( - $branchInput.val() && - $allowedToMergeInput.length && - $allowedToPushInput.length - ); + $branchInput.val() && + $allowedToMergeInput.length && + $allowedToPushInput.length + ); this.savePreviousSelection($allowedToMergeInput.val(), $allowedToPushInput.val()); this.$form.find('input[type="submit"]').attr('disabled', completedForm); |