LSP: fixed display issue with autopushes with a scheduletime but no complete time and vice versa

This commit is contained in:
Cat 2017-11-08 16:48:13 +01:00 committed by Thulinma
parent ba11c868c9
commit a3db600bcb
2 changed files with 24 additions and 18 deletions

View file

@ -4490,11 +4490,17 @@ var UI = {
if ((type == "Automatic") && (push.length >= 4)) {
$target.append(
$('<span>').text(push[2])
).append(
$('<span>').text(', schedule on '+(new Date(push[3]*1e3)).toLocaleString())
).append(
$('<span>').text(", complete on "+(new Date(push[4]*1e3)).toLocaleString())
);
if (push[3]) {
$target.append(
$('<span>').text(', schedule on '+(new Date(push[3]*1e3)).toLocaleString())
);
}
if ((push.length >= 5) && (push[4])) {
$target.append(
$('<span>').text(", complete on "+(new Date(push[4]*1e3)).toLocaleString())
);
}
}
else if ((push.length >= 4) && (push[2] != push[3])) {
$target.append(