From 0ddd0ed4fbee08429c215946ca4dd19cd3e56a63 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sun, 14 Jun 2015 00:04:29 -0700 Subject: fish_config to select the proper tab when run with a tab name `fish_config abbr` should show "abbreviations" selected in the tab list. --- share/tools/web_config/js/controllers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'share/tools') 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; -- cgit v1.2.3