Switch to bootstrap

This commit is contained in:
Garry Newman
2016-04-12 15:13:48 +01:00
parent c95ca0445a
commit 6de72eec86
8 changed files with 276 additions and 238 deletions
+19
View File
@@ -4,6 +4,7 @@ app.controller( 'PlayerListController', PlayerListController );
function PlayerListController( $scope, rconService, $interval )
{
$scope.Output = new Array();
$scope.OrderBy = '-ConnectedSeconds';
$scope.Refresh = function ()
{
@@ -13,6 +14,24 @@ function PlayerListController( $scope, rconService, $interval )
});
}
$scope.Order = function( o )
{
if ( $scope.OrderBy == o )
{
o = '-' + o;
}
$scope.OrderBy = o;
}
$scope.SortClass = function( o )
{
if ( $scope.OrderBy == o ) return "active";
if ( $scope.OrderBy == "-" + o ) return "active descending";
return null;
}
rconService.InstallService( $scope, $scope.Refresh )
var timer = $interval( function ()