From c3377073e3ef0e5432106804da30127827f1070a Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Sun, 16 Jun 2013 13:55:18 -0900 Subject: [PATCH] Remove masthead active links --- js/controllers.js | 30 ------------------------------ partials/masthead.html | 8 ++++---- partials/statusbar.html | 2 +- 3 files changed, 5 insertions(+), 35 deletions(-) diff --git a/js/controllers.js b/js/controllers.js index 7e91f0bed..793e48cda 100644 --- a/js/controllers.js +++ b/js/controllers.js @@ -1,36 +1,6 @@ function MastheadController($scope) { $scope.template = 'partials/masthead.html'; - - $scope.hclass = 'active'; - $scope.cclass = ''; - $scope.iclass = ''; - $scope.sclass = ''; - - $scope.linkChange = function(link) { - $scope.hclass = ''; - $scope.cclass = ''; - $scope.iclass = ''; - $scope.sclass = ''; - - //This is shitty, I need help with this crap. - switch(link) { - case 'home': - $scope.hclass = 'active'; - break; - case 'containers': - $scope.cclass = 'active'; - break; - case 'images': - $scope.iclass = 'active'; - break; - case 'settings': - $scope.sclass = 'active'; - break; - default: - console.log('Not supported:' + link); - } - }; } function DashboardController($scope, Container) { diff --git a/partials/masthead.html b/partials/masthead.html index 7835148d5..a63e6df63 100644 --- a/partials/masthead.html +++ b/partials/masthead.html @@ -4,10 +4,10 @@ diff --git a/partials/statusbar.html b/partials/statusbar.html index d4abfe6ff..24feef1a9 100644 --- a/partials/statusbar.html +++ b/partials/statusbar.html @@ -1,3 +1,3 @@