mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-21 03:21:16 -03:00
Use single expression instead of a function call to show selected tab
This commit is contained in:
@@ -7,15 +7,6 @@ controllers.controller("main", function($scope, $location) {
|
||||
$location.path(view);
|
||||
$scope.currentTab = view;
|
||||
}
|
||||
|
||||
$scope.tabCssClass = function(view) {
|
||||
var cls = "tab";
|
||||
if ($scope.currentTab == view) {
|
||||
cls += " selected_tab";
|
||||
}
|
||||
return cls;
|
||||
}
|
||||
|
||||
})
|
||||
|
||||
controllers.controller("colorsController", function($scope, $http) {
|
||||
|
||||
Reference in New Issue
Block a user