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:
parent
12580c442b
commit
da6af09c45
|
@ -1534,3 +1534,12 @@ DIV#daysView DIV[class~="event"].lasts95
|
|||
|
||||
DIV#daysView DIV[class~="event"].lasts96
|
||||
{ height: 100.000000%; }
|
||||
|
||||
DIV#nowLineDisplay
|
||||
{
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 2px;
|
||||
background: red;
|
||||
z-index: 100;
|
||||
}
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue