-
- Downloads
Use the `GLDropdown` component to select protected branches.
1. Modify the component to support a callback for every key press in the filter. We need this so we can update the "Create: <branch_name" label. 2. Modify the component to use `$(<selector>).first().click()` instead of `$(selector)[0].click()`, because the latter is non-standard, and doesn't work in PhantomJS.
Showing
- app/assets/javascripts/gl_dropdown.js.coffee 3 additions, 1 deletionapp/assets/javascripts/gl_dropdown.js.coffee
- app/assets/javascripts/protected_branch_select.js.coffee 40 additions, 0 deletionsapp/assets/javascripts/protected_branch_select.js.coffee
- app/controllers/projects/protected_branches_controller.rb 1 addition, 1 deletionapp/controllers/projects/protected_branches_controller.rb
- app/views/projects/protected_branches/_dropdown.html.haml 17 additions, 0 deletionsapp/views/projects/protected_branches/_dropdown.html.haml
- app/views/projects/protected_branches/index.html.haml 1 addition, 8 deletionsapp/views/projects/protected_branches/index.html.haml
- spec/features/protected_branches_spec.rb 3 additions, 1 deletionspec/features/protected_branches_spec.rb
Please register or sign in to comment