diff options
author | Eric Eastwood <contact@ericeastwood.com> | 2017-03-27 21:27:25 -0500 |
---|---|---|
committer | Eric Eastwood <contact@ericeastwood.com> | 2017-03-27 21:27:25 -0500 |
commit | 550adacb3e5cdb161b41cf72309a5d65498f5906 (patch) | |
tree | 2f6f72bd8826ff3df8f8a5956c42cf7c854af1b4 /app/views/projects | |
parent | d4c99f644a2da2aa340aee8bc10c1dcf7c9e0d18 (diff) | |
download | gitlab-ce-550adacb3e5cdb161b41cf72309a5d65498f5906.tar.gz |
Fix custom protected branch pattern jumping scroll position to top
Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/30149
Use more semantic `<button>` element and prevent the form from
submitting.
Diffstat (limited to 'app/views/projects')
-rw-r--r-- | app/views/projects/protected_branches/_dropdown.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/protected_branches/_dropdown.html.haml b/app/views/projects/protected_branches/_dropdown.html.haml index a9e27df5a87..5af0cc7a2f3 100644 --- a/app/views/projects/protected_branches/_dropdown.html.haml +++ b/app/views/projects/protected_branches/_dropdown.html.haml @@ -10,6 +10,6 @@ %ul.dropdown-footer-list %li - = link_to '#', title: "New Protected Branch", class: "create-new-protected-branch" do + %button{ class: "create-new-protected-branch-button js-create-new-protected-branch", title: "New Protected Branch" } Create wildcard %code |