Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBorja Aparicio <baparici@cern.ch>2015-12-08 13:01:24 +0300
committerBorja Aparicio <baparici@cern.ch>2015-12-10 18:27:34 +0300
commit01cafa1d90b387abd017b83794eb55dd7e6fca3b (patch)
tree5b4d5f731e6eb3a282476d7ca7d236703b3e5743
parent4e5897f51ef97d7c3ff6c57f81521f552979a3da (diff)
Aling project js with EE
-rw-r--r--app/assets/javascripts/project.js.coffee7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/assets/javascripts/project.js.coffee b/app/assets/javascripts/project.js.coffee
index ec919f0cd67..1f221945c06 100644
--- a/app/assets/javascripts/project.js.coffee
+++ b/app/assets/javascripts/project.js.coffee
@@ -4,8 +4,11 @@ class @Project
$('.js-protocol-switch').click ->
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')