diff options
author | Phil Hughes <me@iamphill.com> | 2017-01-03 16:31:43 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-02-09 09:16:52 +0000 |
commit | cd5bee0d4438e4bb5158b721580cec8687e95e93 (patch) | |
tree | 16f3dcc1fb82f30cf1a0bde970e12259e2796cce /app/views/projects/pipelines/new.html.haml | |
parent | 059d1ae4c847aa9018c89900b39c2782aa9b623e (diff) | |
download | gitlab-ce-cd5bee0d4438e4bb5158b721580cec8687e95e93.tar.gz |
Removed jQuery UI highlight & autocompleteremove-jquery-ui-plugins
In an effort to tackle #18437 this removes 2 of the jQuery UI plugins. Highlight & autocomplete, both used once in our code. Highlight was just removed easily, autocomplete was replaced with GL dropdown
Diffstat (limited to 'app/views/projects/pipelines/new.html.haml')
-rw-r--r-- | app/views/projects/pipelines/new.html.haml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/views/projects/pipelines/new.html.haml b/app/views/projects/pipelines/new.html.haml index 55202725b9e..14a270a3039 100644 --- a/app/views/projects/pipelines/new.html.haml +++ b/app/views/projects/pipelines/new.html.haml @@ -9,7 +9,11 @@ .form-group = f.label :ref, 'Create for', class: 'control-label' .col-sm-10 - = f.text_field :ref, required: true, tabindex: 2, class: 'form-control js-branch-name ui-autocomplete-input', autocomplete: :false, id: :ref + = hidden_field_tag 'pipeline[ref]', params[:ref] || @project.default_branch + = dropdown_tag(params[:ref] || @project.default_branch, + options: { toggle_class: 'js-branch-select wide', + filter: true, dropdown_class: "dropdown-menu-selectable", placeholder: "Search branches", + data: { selected: params[:ref] || @project.default_branch, field_name: 'pipeline[ref]' } }) .help-block Existing branch name, tag .form-actions = f.submit 'Create pipeline', class: 'btn btn-create', tabindex: 3 |