From 0b12472b6ecb09b5053c50bca9e8f13e4f367af3 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 5 Apr 2018 10:12:48 +0200 Subject: [locationinfo] Fix color of seat counter not updating properly --- modules-available/locationinfo/frontend/frontendscript.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules-available/locationinfo/frontend/frontendscript.js') diff --git a/modules-available/locationinfo/frontend/frontendscript.js b/modules-available/locationinfo/frontend/frontendscript.js index bad6a8ed..b5f59792 100644 --- a/modules-available/locationinfo/frontend/frontendscript.js +++ b/modules-available/locationinfo/frontend/frontendscript.js @@ -42,7 +42,7 @@ function toInt(str) { * computes the time difference between 2 Date objects * @param {Date} a * @param {Date} b - * @param {Array} globalConfig + * @param {Object} globalConfig * @returns {string} printable time */ function GetTimeDiferenceAsString(a, b, globalConfig) { -- cgit v1.2.3-55-g7522 From e327bcd7ee111c7ca296e60ba3579964285fe742 Mon Sep 17 00:00:00 2001 From: Christian Hofmaier Date: Tue, 4 Dec 2018 16:56:28 +0100 Subject: [locationinfo] fix panel being closed all day long --- modules-available/locationinfo/frontend/frontendscript.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules-available/locationinfo/frontend/frontendscript.js') diff --git a/modules-available/locationinfo/frontend/frontendscript.js b/modules-available/locationinfo/frontend/frontendscript.js index b5f59792..efe4d5b6 100644 --- a/modules-available/locationinfo/frontend/frontendscript.js +++ b/modules-available/locationinfo/frontend/frontendscript.js @@ -15,7 +15,7 @@ function IsOpen(date, room) { openDate.setMinutes(tmp[i].MinutesOpen); closeDate.setHours(tmp[i].HourClose); closeDate.setMinutes(tmp[i].MinutesClose); - if (openDate < date && closeDate > date) { + if (openDate <= date && closeDate > date) { return true; } } -- cgit v1.2.3-55-g7522