diff options
author | Michael Scherle | 2016-12-02 16:06:58 +0100 |
---|---|---|
committer | Michael Scherle | 2016-12-02 16:06:58 +0100 |
commit | 88118d1d4e77aca07f740760fae411050e6fb71d (patch) | |
tree | b56049219bab59bd06262d7d35ff9479828de9b1 /modules-available/locationinfo/frontend | |
parent | frontend: fixed all time parameter from config (diff) | |
download | slx-admin-88118d1d4e77aca07f740760fae411050e6fb71d.tar.gz slx-admin-88118d1d4e77aca07f740760fae411050e6fb71d.tar.xz slx-admin-88118d1d4e77aca07f740760fae411050e6fb71d.zip |
frontend: fix that it not uses more then 7 days
Diffstat (limited to 'modules-available/locationinfo/frontend')
-rwxr-xr-x | modules-available/locationinfo/frontend/doorsign.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/locationinfo/frontend/doorsign.html b/modules-available/locationinfo/frontend/doorsign.html index 80189fd8..90b5b69e 100755 --- a/modules-available/locationinfo/frontend/doorsign.html +++ b/modules-available/locationinfo/frontend/doorsign.html @@ -579,7 +579,7 @@ optional: if(scaleDaysAuto) {
var result = (44 + cal.weekCalendar("option","daysToShow")*columnWidth)/100;
- result = parseInt(Math.max(Math.abs(result),1));
+ result = parseInt(Math.min(Math.max(Math.abs(result),1),7));
if(result != parseInt(cal.weekCalendar("option","daysToShow"))){
cal.weekCalendar("option", "daysToShow", Math.abs(result));
}
|