dashboard: refactor interface
This commit is contained in:
parent
b9f1822a65
commit
3056a19d09
3 changed files with 35 additions and 18 deletions
|
@ -149,10 +149,10 @@ angular.module("FICApp")
|
|||
$scope.time = {};
|
||||
return
|
||||
} else if ($rootScope.settings.start > srv_cur) {
|
||||
$rootScope.startIn = Math.floor(($rootScope.settings.start - srv_cur) / 1000);
|
||||
$scope.startIn = Math.floor(($rootScope.settings.start - srv_cur) / 1000);
|
||||
remain = $rootScope.settings.end - $rootScope.settings.start;
|
||||
} else if ($rootScope.settings.end > srv_cur) {
|
||||
$rootScope.startIn = 0;
|
||||
$scope.startIn = 0;
|
||||
remain = $rootScope.settings.end - srv_cur;
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue