From 642e1301aef038c28893aae1c434ff1ded8b6f46 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 7 Jun 2017 14:09:39 +0200 Subject: [locationinfo] Change order of status bars in overview frontend --- modules-available/locationinfo/api.inc.php | 2 +- modules-available/locationinfo/frontend/panel.html | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'modules-available') diff --git a/modules-available/locationinfo/api.inc.php b/modules-available/locationinfo/api.inc.php index 945c4c92..644f990b 100644 --- a/modules-available/locationinfo/api.inc.php +++ b/modules-available/locationinfo/api.inc.php @@ -337,7 +337,7 @@ function findLocations($locations, $idList) * Gets the calendar of the given ids. * * @param int[] $idList list with the location ids. - * @return string Calendar JSON. + * @return array Calendar. */ function getCalendar($idList) { diff --git a/modules-available/locationinfo/frontend/panel.html b/modules-available/locationinfo/frontend/panel.html index 7b15f640..dd5fc25d 100644 --- a/modules-available/locationinfo/frontend/panel.html +++ b/modules-available/locationinfo/frontend/panel.html @@ -71,11 +71,11 @@ .pc-idle { background-color: green; - border-radius: 3px 0px 0px 3px; } .pc-occupied { background-color: red; + border-radius: 3px 0px 0px 3px; } .pc-off { @@ -532,10 +532,10 @@ } $('#parent_' + id).parent().show(); var total = parseInt(idle) + parseInt(occupied) + parseInt(off) + parseInt(broken); - $("#div_pc_Idle_" + id).text(idle).width((idle / total) * 100 + '%'); - $("#div_pc_Occupied_" + id).text(occupied).width((occupied / total) * 100 + '%'); - $("#div_pc_Off_" + id).text(off).width((off / total) * 100 + '%'); - $("#div_pc_Broken_" + id).text(broken).width((broken / total) * 100 + '%'); + $("#pc_Idle_" + id).text(idle).width((idle / total) * 100 + '%'); + $("#pc_Occupied_" + id).text(occupied).width((occupied / total) * 100 + '%'); + $("#pc_Off_" + id).text(off).width((off / total) * 100 + '%'); + $("#pc_Broken_" + id).text(broken).width((broken / total) * 100 + '%'); } /** @@ -575,10 +575,10 @@ "
" + "
" + name + "
" + "
" + - "
?
" + - "
?
" + - "
?
" + - "
?
" + + "
?
" + + "
?
" + + "
?
" + + "
?
" + "
" + "
" + "
?
" + -- cgit v1.2.3-55-g7522