From 6fbb3c9976cc8fe0b9b501214d46b73a9951e4cb Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sun, 14 Jun 2015 00:04:29 -0700 Subject: [PATCH] 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(-) diff --git a/share/tools/web_config/js/controllers.js b/share/tools/web_config/js/controllers.js index 0ddfa83fd..73985b7a5 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;