summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-12-02 14:38:33 +0100
committerDouwe Maan <douwe@gitlab.com>2015-12-02 14:41:56 +0100
commit2aeb26bd8823fa681413bd0f64b7b068f41ec4e3 (patch)
tree1ac40123d0d0fffd43a0c4e1175d6e16c31236ae
parent9bad736fb3ccd0a48cd64fc37538d8b021bce205 (diff)
downloadgitlab-ce-2aeb26bd8823fa681413bd0f64b7b068f41ec4e3.tar.gz
Use select2 placeholder instead of blank option
-rw-r--r--app/views/projects/protected_branches/index.html.haml3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/views/projects/protected_branches/index.html.haml b/app/views/projects/protected_branches/index.html.haml
index 52b3a50c1e6..2541105b007 100644
--- a/app/views/projects/protected_branches/index.html.haml
+++ b/app/views/projects/protected_branches/index.html.haml
@@ -22,7 +22,7 @@
.form-group
= f.label :name, "Branch", class: 'control-label'
.col-sm-10
- = f.select(:name, @project.open_branches.map { |br| [br.name, br.name] } , {include_blank: "Select branch"}, {class: "select2"})
+ = f.select(:name, @project.open_branches.map { |br| [br.name, br.name] } , {include_blank: true}, {class: "select2", data: {placeholder: "Select branch"}})
.form-group
.col-sm-offset-2.col-sm-10
.checkbox
@@ -33,4 +33,3 @@
.form-actions
= f.submit 'Protect', class: "btn-create btn"
= render 'branches_list'
-