summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo/templates
diff options
context:
space:
mode:
authorJannik Schönartz2017-11-30 15:17:43 +0100
committerJannik Schönartz2017-11-30 15:17:43 +0100
commit5eb51d3c1a9d1f9a3bbc9a7e84e1f7e932a25f1d (patch)
tree8bcd09075a5638d706896b006cfc9731806d907e /modules-available/locationinfo/templates
parent[statistics] Reset session name on login to vmchooser (diff)
downloadslx-admin-5eb51d3c1a9d1f9a3bbc9a7e84e1f7e932a25f1d.tar.gz
slx-admin-5eb51d3c1a9d1f9a3bbc9a7e84e1f7e932a25f1d.tar.xz
slx-admin-5eb51d3c1a9d1f9a3bbc9a7e84e1f7e932a25f1d.zip
[locationinfo] removed seconds from the time. More than 4 locations are allowed for the summary panel
Diffstat (limited to 'modules-available/locationinfo/templates')
-rw-r--r--modules-available/locationinfo/templates/frontend-summary.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/modules-available/locationinfo/templates/frontend-summary.html b/modules-available/locationinfo/templates/frontend-summary.html
index e8406de4..7faa01e5 100644
--- a/modules-available/locationinfo/templates/frontend-summary.html
+++ b/modules-available/locationinfo/templates/frontend-summary.html
@@ -571,7 +571,13 @@
* @param time Time value
*/
function updateCoursTimer(id, time) {
- $("#div_Time_" + id).text(time);
+ // TODO: Add seconds again with a better update rate.
+ var time_split = time.split(":");
+ if (time != "") {
+ $("#div_Time_" + id).text(time_split[0] + ":" + time_split[1]);
+ } else {
+ $("#div_Time_" + id).text(time);
+ }
}
/**