mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 01:28:19 +01:00
NEW Add total of time spent in timespent page at top of page too.
This commit is contained in:
@@ -213,11 +213,9 @@ function updateTotal(days,mode)
|
||||
}
|
||||
});
|
||||
|
||||
if (document.getElementById('totalDay['+days+']')) // May be null if no task records to output (nbline is also 0 in this case)
|
||||
{
|
||||
document.getElementById('totalDay['+days+']').innerHTML = pad(total.getHours())+':'+pad(total.getMinutes());
|
||||
//addText(,total.getHours()+':'+total.getMinutes());
|
||||
}
|
||||
if (total.getHours() || total.getMinutes()) jQuery('.totalDay'+days).addClass("bold");
|
||||
else jQuery('.totalDay'+days).removeClass("bold");
|
||||
jQuery('.totalDay'+days).text(pad(total.getHours())+':'+pad(total.getMinutes()));
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -257,10 +255,10 @@ function updateTotal(days,mode)
|
||||
}
|
||||
}
|
||||
}
|
||||
if (document.getElementById('totalDay['+days+']')) // May be null if no task records to output (nbline is also 0 in this case)
|
||||
{
|
||||
document.getElementById('totalDay['+days+']').innerHTML = total;
|
||||
}
|
||||
|
||||
if (total) jQuery('.totalDay'+days).addClass("bold");
|
||||
else jQuery('.totalDay'+days).removeClass("bold");
|
||||
jQuery('.totalDay'+days).text(total);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user