From 89fcf50762ecc3ffe62bf6860588ccbec792563d Mon Sep 17 00:00:00 2001 From: Will Marshall Date: Thu, 27 Mar 2014 16:36:12 +1100 Subject: [PATCH] Tidying up tabs --- .../darkswarm/controllers/tabs_controller.js.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/darkswarm/controllers/tabs_controller.js.coffee b/app/assets/javascripts/darkswarm/controllers/tabs_controller.js.coffee index f6e6d15f89..eb501bcb4a 100644 --- a/app/assets/javascripts/darkswarm/controllers/tabs_controller.js.coffee +++ b/app/assets/javascripts/darkswarm/controllers/tabs_controller.js.coffee @@ -1,6 +1,6 @@ Darkswarm.controller "TabsCtrl", ($scope, $rootScope, $location, OrderCycle) -> $scope.active = (path)-> - if !OrderCycle.selected() and $location.hash() == "" and path == "/about" + if !OrderCycle.selected() and $location.hash() == "" and path == "about" true else $location.hash() == path @@ -9,10 +9,10 @@ Darkswarm.controller "TabsCtrl", ($scope, $rootScope, $location, OrderCycle) -> $scope.tabs = ["contact", "about", "groups", "producers"] for tab in $scope.tabs $scope[tab] = - path: "/" + tab + path: tab $scope.select = (tab)-> if $scope.active(tab.path) - $location.hash "/" + $location.hash "" else $location.hash tab.path