admin: Display time before start in UI

This commit is contained in:
nemunaire 2017-01-16 13:14:55 +01:00
parent 8fd2cd66c1
commit 4550f653ea
3 changed files with 13 additions and 0 deletions

View file

@ -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;