diff options
author | Christian Hofmaier | 2018-12-04 16:56:28 +0100 |
---|---|---|
committer | Christian Hofmaier | 2018-12-04 16:56:28 +0100 |
commit | e327bcd7ee111c7ca296e60ba3579964285fe742 (patch) | |
tree | a6f13e1e12d0c143418e0c59a656bc2d95f438c7 /modules-available/locationinfo/frontend | |
parent | [locationinfo] Prevent undefined index access (diff) | |
download | slx-admin-e327bcd7ee111c7ca296e60ba3579964285fe742.tar.gz slx-admin-e327bcd7ee111c7ca296e60ba3579964285fe742.tar.xz slx-admin-e327bcd7ee111c7ca296e60ba3579964285fe742.zip |
[locationinfo] fix panel being closed all day long
Diffstat (limited to 'modules-available/locationinfo/frontend')
-rw-r--r-- | modules-available/locationinfo/frontend/frontendscript.js | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } |