aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/tools
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-06-14 00:04:29 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-06-14 00:10:11 -0700
commit0ddd0ed4fbee08429c215946ca4dd19cd3e56a63 (patch)
tree624c4383cef1b2337eed0b1e32168622500311aa /share/tools
parent2d1331e104bfbf009da61b2aa688e840a001f4ce (diff)
fish_config to select the proper tab when run with a tab name
`fish_config abbr` should show "abbreviations" selected in the tab list.
Diffstat (limited to 'share/tools')
-rw-r--r--share/tools/web_config/js/controllers.js4
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;