mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-29 15:15:37 +00:00
Mantis 73
Monotone-Parent: ef30367c8b75538cf7607ce41aba7151c3667d37 Monotone-Revision: 9bf1b57a27d30984eb23f37b8cfbe075869b047a Monotone-Author: crobert@inverse.ca Monotone-Date: 2009-07-23T13:57:35 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -2068,6 +2068,32 @@ function onWindowResize(event) {
|
||||
day.setStyle({ width: (label.getWidth()-1) + "px" });
|
||||
}
|
||||
}
|
||||
drawNowLine ();
|
||||
}
|
||||
|
||||
function drawNowLine () {
|
||||
var d = new Date();
|
||||
var hours = d.getHours();
|
||||
var minutes = d.getMinutes();
|
||||
var test = $$("DIV#daysView DIV.days DIV.day");
|
||||
// day view
|
||||
if (test.length == 1)
|
||||
var targets = $$("DIV#daysView DIV.days DIV.day DIV.events DIV.clickableHourCell");
|
||||
else
|
||||
var targets = $$("DIV#daysView DIV.days DIV.dayOfToday DIV.events DIV.clickableHourCell");
|
||||
|
||||
var target = targets[hours];
|
||||
|
||||
if (target) {
|
||||
var div = $("nowLineDisplay");
|
||||
if (!div)
|
||||
div = new Element ("div", {'id': 'nowLineDisplay'});
|
||||
|
||||
div.style.top = parseInt (((minutes * target.offsetHeight) / 60) - 1) + "px";
|
||||
target.appendChild (div);
|
||||
|
||||
setTimeout ("drawNowLine ();", 60000); // 1 min.
|
||||
}
|
||||
}
|
||||
|
||||
function initCalendars() {
|
||||
|
||||
Reference in New Issue
Block a user