Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-11-21 20:45:27 +0300
committerJacob Schatz <jschatz1@gmail.com>2016-11-22 05:01:45 +0300
commit50d58c14cd2cd1b8fb1bb9e4a7a1091b5af90c04 (patch)
treef54739b8c5ec30c4cb9449ac3cbb89fdc720bafb /app/assets/javascripts/protected_branches
parente95d43dfc5303dcb9e86359049b5f798e8351431 (diff)
Fixed protected branches dropdown
Diffstat (limited to 'app/assets/javascripts/protected_branches')
-rw-r--r--app/assets/javascripts/protected_branches/protected_branch_dropdown.js.es62
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/protected_branches/protected_branch_dropdown.js.es6 b/app/assets/javascripts/protected_branches/protected_branch_dropdown.js.es6
index 9b551a1ed8c..1ab72ee49e4 100644
--- a/app/assets/javascripts/protected_branches/protected_branch_dropdown.js.es6
+++ b/app/assets/javascripts/protected_branches/protected_branch_dropdown.js.es6
@@ -48,7 +48,7 @@ class ProtectedBranchDropdown {
onClickCreateWildcard() {
// Refresh the dropdown's data, which ends up calling `getProtectedBranches`
this.$dropdown.data('glDropdown').remote.execute();
- this.$dropdown.data('glDropdown').selectRowAtIndex(gon.open_branches.length);
+ this.$dropdown.data('glDropdown').selectRowAtIndex();
}
getProtectedBranches(term, callback) {