summaryrefslogtreecommitdiffstats
path: root/modules-available/locationinfo
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
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')
-rw-r--r--modules-available/locationinfo/page.inc.php3
-rw-r--r--modules-available/locationinfo/templates/frontend-summary.html8
2 files changed, 7 insertions, 4 deletions
diff --git a/modules-available/locationinfo/page.inc.php b/modules-available/locationinfo/page.inc.php
index 2471a701..311b269d 100644
--- a/modules-available/locationinfo/page.inc.php
+++ b/modules-available/locationinfo/page.inc.php
@@ -327,9 +327,6 @@ class Page_LocationInfo extends Page
{
// Check locations
$locationids = self::getLocationIdsFromRequest(true);
- if (count($locationids) > 4) {
- $locationids = array_slice($locationids, 0, 4);
- }
return array('locationids' => $locationids);
}
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);
+ }
}
/**