serverinfo cleanup

This commit is contained in:
alexfriesen
2016-06-08 19:35:20 +02:00
parent e2f08d52ce
commit d700aff8e7
2 changed files with 12 additions and 9 deletions
+3 -7
View File
@@ -5,16 +5,12 @@ function ServerInfoController( $scope, rconService, $routeParams )
{
$scope.info = {};
$scope.Refresh = function ()
$scope.refresh = function ()
{
rconService.Request( 'serverinfo', $scope, function ( msg )
{
rconService.Request( 'serverinfo', $scope, function ( msg ) {
$scope.info = JSON.parse( msg.Message );
// $scope.Players = JSON.parse( msg.Message );
console.log($scope.info);
});
}
rconService.InstallService( $scope, $scope.Refresh );
rconService.InstallService( $scope, $scope.refresh );
}