diff --git a/ChangeLog b/ChangeLog index 9db659610..e714e3594 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2006-10-03 Wolfgang Sourdeau + * UI/WebServerResources/SchedulerUI.js: added code to scroll the + view of the day at the height of hour 8:00. + * UI/Scheduler/UIxCalView.m ([UIxCalView -dayStartHour]): returns 0. ([UIxCalView -dayEndHour]): returns 24. diff --git a/UI/Templates/SchedulerUI/UIxCalDayTable.wox b/UI/Templates/SchedulerUI/UIxCalDayTable.wox index 1bf8e7c32..8ae7af69d 100644 --- a/UI/Templates/SchedulerUI/UIxCalDayTable.wox +++ b/UI/Templates/SchedulerUI/UIxCalDayTable.wox @@ -80,4 +80,8 @@ + + diff --git a/UI/WebServerResources/SchedulerUI.js b/UI/WebServerResources/SchedulerUI.js index 71641b49e..bb916a786 100644 --- a/UI/WebServerResources/SchedulerUI.js +++ b/UI/WebServerResources/SchedulerUI.js @@ -311,6 +311,18 @@ function onMonthOverview() return _ensureView("monthview"); } +function scrollDayViewTo8() +{ + var calContent = $("calendarContent"); + var tables = calContent.getElementsByTagName("table"); + if (tables.length > 0) { + var row = tables[0].rows[9]; + var cell = row.cells[1]; + + calContent.scrollTop = cell.offsetTop; + } +} + function calendarDisplayCallback(http) { var div = $("calendarView"); @@ -324,6 +336,7 @@ function calendarDisplayCallback(http) currentView = http.callbackData["view"]; if (http.callbackData["day"]) currentDay = http.callbackData["day"]; + scrollDayViewTo8(); } else log ("ajax fuckage");