Skeep weekends when paging in in free/busy times display (#382)
This commit is contained in:
parent
2d0018be3e
commit
78a667036f
2 changed files with 7 additions and 1 deletions
|
@ -859,6 +859,12 @@ function rcube_calendar_ui(settings)
|
|||
{
|
||||
if (delta) {
|
||||
freebusy_ui.start.setTime(freebusy_ui.start.getTime() + DAY_MS * delta);
|
||||
// skip weekends if in workinhoursonly-mode
|
||||
if (Math.abs(delta) == 1 && freebusy_ui.workinhoursonly) {
|
||||
while (is_weekend(freebusy_ui.start))
|
||||
freebusy_ui.start.setTime(freebusy_ui.start.getTime() + DAY_MS * delta);
|
||||
}
|
||||
|
||||
freebusy_ui.end = new Date(freebusy_ui.start.getTime() + DAY_MS * freebusy_ui.numdays);
|
||||
}
|
||||
|
||||
|
|
|
@ -221,7 +221,7 @@
|
|||
<button id="shedule-find-next"><roundcube:label name="calendar.nextslot" /> ►</button>
|
||||
</div>
|
||||
<div class="schedule-options">
|
||||
<label><input type="checkbox" id="schedule-freebusy-wokinghours" value="1" /><roundcube:label name="calendar.onlyworkinghours" /></label>
|
||||
<label><input type="checkbox" id="schedule-freebusy-workinghours" value="1" /><roundcube:label name="calendar.onlyworkinghours" /></label>
|
||||
</div>
|
||||
</div>
|
||||
<br style="clear:both;" />
|
||||
|
|
Loading…
Add table
Reference in a new issue