improved formatSecondsToHHMMSS

This commit is contained in:
gabryon99 2020-08-12 12:16:33 +02:00
parent 036b22229e
commit 17f9a50273
3 changed files with 3 additions and 2 deletions

View file

@ -1,6 +1,7 @@
jQuery.fn.dataTableExt.sErrMode = 'console';
jQuery.fn.dataTableExt.formatSecondsToHHMMSS = (data, type, row) => {
if (isNaN(data)) return data;
if (type == "display" && data == 0) return '-';
if (type == "display") return secondsToTime(data);
return data;
};