mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-21 19:35:38 +00:00
Monotone-Parent: c0151034b0d2d524c781ad3135709a8b9ff7a3c8
Monotone-Revision: b6562cfc2be0b285ef7b97891b12497ca0e09dd8 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-10-03T22:59:07 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
2006-10-03 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||
|
||||
* 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.
|
||||
|
||||
|
||||
@@ -80,4 +80,8 @@
|
||||
</tr>
|
||||
</var:foreach>
|
||||
</table>
|
||||
|
||||
<script type="text/javascript">
|
||||
scrollDayViewTo8();
|
||||
</script>
|
||||
</container>
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user