Add additional info when hovering over activity pane.

This commit is contained in:
Tim 2015-07-12 17:41:59 +02:00
parent 2221697c20
commit 887c61a80b
4 changed files with 72 additions and 4 deletions

View file

@ -253,7 +253,6 @@ String.prototype.toProperCase = function () {
function millisecondsToMinutes(ms, roundToMinute) {
console.log("Ms: " + ms)
if (ms > 0) {
seconds = ms / 1000;
minutes = seconds / 60;
@ -270,7 +269,10 @@ function millisecondsToMinutes(ms, roundToMinute) {
}
return output;
} else {
return '0';
if (roundToMinute) {
return '0';
} else {
return '0:00';
}
}
}