admin: Display time before start in UI
This commit is contained in:
parent
8fd2cd66c1
commit
4550f653ea
3 changed files with 13 additions and 0 deletions
|
@ -449,7 +449,10 @@ angular.module("FICApp")
|
|||
$scope.refresh(true);
|
||||
}
|
||||
if (time.st > 0 && time.st <= srv_cur) {
|
||||
$scope.startIn = 0;
|
||||
remain = time.st + time.du - srv_cur;
|
||||
} else if (time.st > 0) {
|
||||
$scope.startIn = Math.floor(time.st - srv_cur);
|
||||
}
|
||||
if (remain < 0) {
|
||||
remain = 0;
|
||||
|
|
Reference in a new issue