Skip to content

Commit 533c5fa

Browse files
authored
Убрал отображение нулевого времени на сохр. тайм.
1 parent cd0f53a commit 533c5fa

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

jsTimer.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -920,11 +920,14 @@ function drawSavedTimer(timer)
920920
tc.appendChild(tt);
921921
tt.id = 'timer-' + timer.id + "-t";
922922

923-
var tend = document.createElement("span");
924-
tc.appendChild(tend);
925-
tend.id = 'timer-' + timer.id + "-end";
926-
tend.textContent = formatDate(new Date(timer.totalSeconds*1000));
927-
//tend.style.marginLeft = '10%';
923+
if (timer.totalSeconds > 0)
924+
{
925+
var tend = document.createElement("span");
926+
tc.appendChild(tend);
927+
tend.id = 'timer-' + timer.id + "-end";
928+
tend.textContent = formatDate(new Date(timer.totalSeconds*1000));
929+
//tend.style.marginLeft = '10%';
930+
}
928931

929932
var tdel = document.createElement("div");
930933
div.appendChild(tdel);

0 commit comments

Comments
 (0)