Commit a2a68858 authored by Douwe Maan's avatar Douwe Maan

Merge branch 'feature/project_js_from_ee' into 'master'

Aling project js with EE

The MR ports the changes introduced by gitlab-org/gitlab-ee!70 in `project.js.coffee`.  


See merge request !2054
parents 50f8366a 01cafa1d
...@@ -4,8 +4,11 @@ class @Project ...@@ -4,8 +4,11 @@ class @Project
$('.js-protocol-switch').click -> $('.js-protocol-switch').click ->
return if $(@).hasClass('active') return if $(@).hasClass('active')
# Toggle 'active' for both buttons
$('.js-protocol-switch').toggleClass('active') # Remove the active class for all buttons (ssh, http, kerberos if shown)
$('.active').not($(@)).removeClass('active');
# Add the active class for the clicked button
$(@).toggleClass('active')
url = $(@).data('clone') url = $(@).data('clone')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment