diff options
-rw-r--r-- | share/tools/web_config/js/controllers.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/tools/web_config/js/controllers.js b/share/tools/web_config/js/controllers.js index 0ddfa83f..73985b7a 100644 --- a/share/tools/web_config/js/controllers.js +++ b/share/tools/web_config/js/controllers.js @@ -1,8 +1,8 @@ controllers = angular.module("controllers", []); controllers.controller("main", function($scope, $location) { - $scope.currentTab = "colors"; - + // substr(1) strips a leading slash + $scope.currentTab = $location.path().substr(1) || "colors"; $scope.changeView = function(view) { $location.path(view); $scope.currentTab = view; |