2006-08-19 00:40:04 +02:00
|
|
|
var sortOrder = '';
|
|
|
|
var sortKey = '';
|
2006-08-31 01:13:18 +02:00
|
|
|
var listFilter = 'view_today';
|
2006-08-19 00:40:04 +02:00
|
|
|
|
|
|
|
var currentDay = '';
|
2006-08-24 20:48:33 +02:00
|
|
|
var currentCalendarDay = '';
|
|
|
|
var currentView = 'dayview';
|
2006-08-19 00:40:04 +02:00
|
|
|
|
2006-08-14 22:32:30 +02:00
|
|
|
function newEvent(sender) {
|
2006-08-31 01:13:18 +02:00
|
|
|
var day = sender.getAttribute("day");
|
|
|
|
var hour = sender.getAttribute("hour");
|
|
|
|
var urlstr = (ApplicationBaseURL + "new"
|
|
|
|
+ "?day=" + day
|
|
|
|
+ "&hm=" + hour);
|
2006-08-15 22:52:23 +02:00
|
|
|
|
2006-08-22 00:36:33 +02:00
|
|
|
window.open(urlstr, "",
|
2006-08-31 01:13:18 +02:00
|
|
|
"width=560,height=170,resizable=1,scrollbars=1,toolbar=0," +
|
2006-08-14 22:32:30 +02:00
|
|
|
"location=0,directories=0,status=0,menubar=0,copyhistory=0");
|
2006-08-22 00:36:33 +02:00
|
|
|
|
|
|
|
return false; /* stop following the link */
|
|
|
|
}
|
|
|
|
|
|
|
|
function _editEventId(id) {
|
|
|
|
var urlstr = ApplicationBaseURL + id + "/edit";
|
|
|
|
|
|
|
|
var win = window.open(urlstr, "SOGo_edit_" + id,
|
2006-08-31 01:13:18 +02:00
|
|
|
"width=560,height=170,resizable=1,scrollbars=1,toolbar=0," +
|
2006-08-22 00:36:33 +02:00
|
|
|
"location=0,directories=0,status=0,menubar=0,copyhistory=0");
|
|
|
|
win.focus();
|
|
|
|
}
|
|
|
|
|
|
|
|
function editEvent() {
|
2006-08-24 20:48:33 +02:00
|
|
|
var list = $("appointmentsList");
|
2006-08-22 00:36:33 +02:00
|
|
|
var nodes = list.getSelectedRowsId();
|
|
|
|
|
2006-08-25 22:49:34 +02:00
|
|
|
if (nodes.length > 0)
|
|
|
|
_editEventId(nodes[0]);
|
|
|
|
|
|
|
|
return false; /* stop following the link */
|
|
|
|
}
|
|
|
|
|
|
|
|
function deleteEvent() {
|
|
|
|
var list = $("appointmentsList");
|
|
|
|
var nodes = list.getSelectedRowsId();
|
|
|
|
|
2006-08-22 00:36:33 +02:00
|
|
|
if (nodes.length > 0) {
|
2006-08-25 22:49:34 +02:00
|
|
|
if (confirm(labels["appointmentDeleteConfirmation"])) {
|
|
|
|
var urlstr = ApplicationBaseURL + nodes[0] + "/delete";
|
|
|
|
document.deleteEventAjaxRequest = triggerAjaxRequest(urlstr,
|
|
|
|
deleteEventCallback,
|
|
|
|
nodes[0]);
|
|
|
|
}
|
2006-08-22 00:36:33 +02:00
|
|
|
}
|
|
|
|
|
2006-08-25 22:49:34 +02:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
function deleteEventCallback(http)
|
|
|
|
{
|
|
|
|
if (http.readyState == 4
|
|
|
|
&& http.status == 200) {
|
|
|
|
document.deleteEventAjaxRequest = null;
|
|
|
|
var node = $(http.callbackData);
|
|
|
|
log ("deleteEventCallback: " + node);
|
|
|
|
node.parentNode.removeChild(node);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
log ("ajax fuckage");
|
2006-08-14 22:32:30 +02:00
|
|
|
}
|
|
|
|
|
2006-08-22 00:36:33 +02:00
|
|
|
function editDoubleClickedEvent(node)
|
|
|
|
{
|
|
|
|
var id = node.getAttribute("id");
|
|
|
|
_editEventId(id);
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2006-08-25 22:49:34 +02:00
|
|
|
function onSelectAll() {
|
|
|
|
var list = $("appointmentsList");
|
|
|
|
list.selectRowsMatchingClass("appointmentRow");
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2006-08-15 22:52:23 +02:00
|
|
|
function displayAppointment(sender) {
|
|
|
|
var aptId = sender.getAttribute("aptId");
|
|
|
|
var urlstr = ApplicationBaseURL + aptId + "/view";
|
|
|
|
|
|
|
|
var win = window.open(urlstr, "SOGo_view_" + aptId,
|
2006-08-31 01:13:18 +02:00
|
|
|
"width=560,height=170,resizable=1,scrollbars=1,toolbar=0," +
|
2006-08-15 22:52:23 +02:00
|
|
|
"location=0,directories=0,status=0,menubar=0,copyhistory=0");
|
|
|
|
win.focus();
|
|
|
|
|
|
|
|
return false; /* stop following the link */
|
|
|
|
}
|
|
|
|
|
2006-08-14 22:32:30 +02:00
|
|
|
function onContactRefresh(node)
|
|
|
|
{
|
|
|
|
var parentNode = node.parentNode;
|
|
|
|
var contacts = '';
|
|
|
|
var done = false;
|
|
|
|
|
|
|
|
var currentNode = parentNode.firstChild;
|
|
|
|
while (currentNode && !done)
|
|
|
|
{
|
|
|
|
if (currentNode.nodeType == 1
|
|
|
|
&& currentNode.getAttribute("type") == "hidden")
|
|
|
|
{
|
|
|
|
contacts = currentNode.value;
|
|
|
|
done = true;
|
|
|
|
}
|
|
|
|
else
|
|
|
|
currentNode = currentNode.nextSibling;
|
|
|
|
}
|
|
|
|
|
|
|
|
log ('contacts: ' + contacts);
|
|
|
|
if (contacts.length > 0)
|
|
|
|
window.location = ApplicationBaseURL + '/show?userUIDString=' + contacts;
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
2006-08-19 00:40:04 +02:00
|
|
|
|
|
|
|
function onDaySelect(node)
|
|
|
|
{
|
|
|
|
currentDay = node.getAttribute("day");
|
|
|
|
|
|
|
|
var td = node.getParentWithTagName("td");
|
|
|
|
var table = td.getParentWithTagName("table");
|
|
|
|
|
|
|
|
// log ("table.selected: " + table.selected);
|
|
|
|
|
|
|
|
if (document.selectedDate)
|
|
|
|
deselectNode(document.selectedDate);
|
|
|
|
|
|
|
|
selectNode(td);
|
|
|
|
document.selectedDate = td;
|
|
|
|
|
2006-08-24 20:48:33 +02:00
|
|
|
changeCalendarDisplay(currentDay, null);
|
2006-08-22 00:36:33 +02:00
|
|
|
if (listFilter == 'view_selectedday')
|
|
|
|
refreshAppointments();
|
2006-08-19 00:40:04 +02:00
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
function onDateSelectorGotoMonth(node)
|
|
|
|
{
|
|
|
|
var day = node.getAttribute("date");
|
|
|
|
|
|
|
|
changeDateSelectorDisplay(day);
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
function onCalendarGotoDay(node)
|
|
|
|
{
|
|
|
|
var day = node.getAttribute("date");
|
|
|
|
|
2006-08-24 20:48:33 +02:00
|
|
|
changeCalendarDisplay(day);
|
2006-08-19 00:40:04 +02:00
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
function gotoToday()
|
|
|
|
{
|
2006-08-25 22:49:34 +02:00
|
|
|
currentDay = '';
|
|
|
|
currentCalendarDay = '';
|
|
|
|
|
2006-08-24 20:48:33 +02:00
|
|
|
changeCalendarDisplay();
|
2006-08-22 00:36:33 +02:00
|
|
|
changeDateSelectorDisplay();
|
2006-08-19 00:40:04 +02:00
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
function dateSelectorCallback(http)
|
|
|
|
{
|
2006-08-24 20:48:33 +02:00
|
|
|
var div = $("dateSelectorView");
|
2006-08-19 00:40:04 +02:00
|
|
|
|
2006-08-22 00:36:33 +02:00
|
|
|
log ("dateselectorcallback: " + div);
|
|
|
|
|
2006-08-19 00:40:04 +02:00
|
|
|
if (http.readyState == 4
|
|
|
|
&& http.status == 200) {
|
|
|
|
document.dateSelectorAjaxRequest = null;
|
|
|
|
div.innerHTML = http.responseText;
|
|
|
|
if (currentDay.length > 0)
|
|
|
|
restoreCurrentDaySelection(div);
|
|
|
|
}
|
|
|
|
else
|
|
|
|
log ("ajax fuckage");
|
|
|
|
}
|
|
|
|
|
|
|
|
function appointmentsListCallback(http)
|
|
|
|
{
|
2006-08-24 20:48:33 +02:00
|
|
|
var div = $("appointmentsListView");
|
2006-08-19 00:40:04 +02:00
|
|
|
|
|
|
|
if (http.readyState == 4
|
|
|
|
&& http.status == 200) {
|
|
|
|
document.dateSelectorAjaxRequest = null;
|
|
|
|
div.innerHTML = http.responseText;
|
|
|
|
var params = parseQueryParameters(http.callbackData);
|
|
|
|
sortKey = params["sort"];
|
|
|
|
sortOrder = params["desc"];
|
|
|
|
}
|
|
|
|
else
|
|
|
|
log ("ajax fuckage");
|
|
|
|
}
|
|
|
|
|
|
|
|
function restoreCurrentDaySelection(div)
|
|
|
|
{
|
|
|
|
var elements = div.getElementsByTagName("a");
|
|
|
|
var day = null;
|
|
|
|
var i = 7;
|
|
|
|
while (!day && i < elements.length)
|
|
|
|
{
|
|
|
|
day = elements[i].getAttribute("day");
|
|
|
|
i++;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (day
|
|
|
|
&& day.substr(0, 6) == currentDay.substr(0, 6))
|
|
|
|
{
|
|
|
|
for (i = 0; i < elements.length; i++) {
|
|
|
|
day = elements[i].getAttribute("day");
|
|
|
|
if (day && day == currentDay) {
|
|
|
|
var td = elements[i].getParentWithTagName("td");
|
|
|
|
if (document.selectedDate)
|
|
|
|
deselectNode(document.selectedDate);
|
|
|
|
selectNode(td);
|
|
|
|
document.selectedDate = td;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function changeDateSelectorDisplay(day, event)
|
|
|
|
{
|
|
|
|
var url = ApplicationBaseURL + "dateselector";
|
|
|
|
if (day)
|
|
|
|
url += "?day=" + day;
|
|
|
|
|
|
|
|
// if (currentDay.length > 0)
|
|
|
|
// url += '&selectedDay=' + currentDay;
|
2006-08-22 00:36:33 +02:00
|
|
|
log ("changeDateSelectorDisplay: " + url);
|
2006-08-19 00:40:04 +02:00
|
|
|
|
|
|
|
if (document.dateSelectorAjaxRequest) {
|
2006-08-22 00:36:33 +02:00
|
|
|
// log ("aborting dateselector ajaxrq");
|
2006-08-19 00:40:04 +02:00
|
|
|
document.dateSelectorAjaxRequest.aborted = true;
|
|
|
|
document.dateSelectorAjaxRequest.abort();
|
|
|
|
}
|
|
|
|
|
|
|
|
document.dateSelectorAjaxRequest = triggerAjaxRequest(url,
|
|
|
|
dateSelectorCallback,
|
|
|
|
null);
|
|
|
|
// log ('should go to ' + day);
|
|
|
|
}
|
|
|
|
|
2006-08-24 20:48:33 +02:00
|
|
|
function changeCalendarDisplay(day, newView)
|
2006-08-19 00:40:04 +02:00
|
|
|
{
|
2006-08-24 20:48:33 +02:00
|
|
|
var url = ApplicationBaseURL + ((newView) ? newView : currentView);
|
2006-08-19 00:40:04 +02:00
|
|
|
|
2006-08-24 20:48:33 +02:00
|
|
|
if (!day)
|
|
|
|
day = currentCalendarDay;
|
2006-08-19 00:40:04 +02:00
|
|
|
if (day)
|
|
|
|
url += "?day=" + day;
|
|
|
|
|
2006-08-24 20:48:33 +02:00
|
|
|
if (newView)
|
|
|
|
log ("switching to view: " + newView);
|
|
|
|
// log ("changeCalendarDisplay: " + url);
|
2006-08-22 00:36:33 +02:00
|
|
|
|
2006-08-19 00:40:04 +02:00
|
|
|
if (document.dayDisplayAjaxRequest) {
|
2006-08-22 00:36:33 +02:00
|
|
|
// log ("aborting day ajaxrq");
|
2006-08-19 00:40:04 +02:00
|
|
|
document.dayDisplayAjaxRequest.aborted = true;
|
|
|
|
document.dayDisplayAjaxRequest.abort();
|
|
|
|
}
|
|
|
|
document.dayDisplayAjaxRequest = triggerAjaxRequest(url,
|
2006-08-24 20:48:33 +02:00
|
|
|
calendarDisplayCallback,
|
|
|
|
{ "view": newView,
|
|
|
|
"day": day });
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
function _ensureView(view) {
|
|
|
|
if (currentView != view)
|
|
|
|
changeCalendarDisplay(null, view);
|
2006-08-19 00:40:04 +02:00
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2006-08-24 20:48:33 +02:00
|
|
|
function onDayOverview()
|
|
|
|
{
|
|
|
|
return _ensureView("dayview");
|
|
|
|
}
|
|
|
|
|
|
|
|
function onWeekOverview()
|
|
|
|
{
|
|
|
|
return _ensureView("weekview");
|
|
|
|
}
|
|
|
|
|
|
|
|
function onMonthOverview()
|
|
|
|
{
|
|
|
|
return _ensureView("monthview");
|
|
|
|
}
|
|
|
|
|
|
|
|
function calendarDisplayCallback(http)
|
2006-08-19 00:40:04 +02:00
|
|
|
{
|
2006-08-24 20:48:33 +02:00
|
|
|
var div = $("calendarView");
|
2006-08-19 00:40:04 +02:00
|
|
|
|
2006-08-24 20:48:33 +02:00
|
|
|
// log ("calendardisplaycallback: " + div);
|
2006-08-19 00:40:04 +02:00
|
|
|
if (http.readyState == 4
|
|
|
|
&& http.status == 200) {
|
|
|
|
document.dateSelectorAjaxRequest = null;
|
|
|
|
div.innerHTML = http.responseText;
|
2006-08-24 20:48:33 +02:00
|
|
|
if (http.callbackData["view"])
|
|
|
|
currentView = http.callbackData["view"];
|
|
|
|
if (http.callbackData["day"])
|
|
|
|
currentCalendarDay = http.callbackData["day"];
|
2006-08-19 00:40:04 +02:00
|
|
|
}
|
|
|
|
else
|
|
|
|
log ("ajax fuckage");
|
|
|
|
}
|
|
|
|
|
2006-08-31 01:13:18 +02:00
|
|
|
function assignCalendar(name)
|
2006-08-19 00:40:04 +02:00
|
|
|
{
|
2006-08-31 01:13:18 +02:00
|
|
|
var node = $(name);
|
|
|
|
|
|
|
|
node.calendar = new skycalendar(node);
|
|
|
|
node.calendar.setCalendarPage(ResourcesURL + "/skycalendar.html");
|
2006-08-19 00:40:04 +02:00
|
|
|
var dateFormat = node.getAttribute("dateFormat");
|
2006-08-31 01:13:18 +02:00
|
|
|
if (dateFormat)
|
|
|
|
node.calendar.setDateFormat(dateFormat);
|
|
|
|
}
|
2006-08-19 00:40:04 +02:00
|
|
|
|
2006-08-31 01:13:18 +02:00
|
|
|
function popupCalendar(node)
|
|
|
|
{
|
|
|
|
var nodeId = node.getAttribute("inputId");
|
|
|
|
var input = $(nodeId);
|
|
|
|
input.calendar.popup();
|
2006-08-19 00:40:04 +02:00
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
function onAppointmentContextMenu(event, element)
|
|
|
|
{
|
2006-08-24 20:48:33 +02:00
|
|
|
var topNode = $('appointmentsList');
|
2006-08-19 00:40:04 +02:00
|
|
|
log(topNode);
|
|
|
|
|
2006-08-24 20:48:33 +02:00
|
|
|
var menu = $('appointmentsListMenu');
|
2006-08-19 00:40:04 +02:00
|
|
|
|
|
|
|
menu.addEventListener("hideMenu", onAppointmentContextMenuHide, false);
|
|
|
|
onMenuClick(event, 'appointmentsListMenu');
|
|
|
|
|
2006-08-24 20:48:33 +02:00
|
|
|
var topNode = $('appointmentsList');
|
2006-08-22 00:36:33 +02:00
|
|
|
var selectedNodes = topNode.getSelectedRows();
|
|
|
|
topNode.menuSelectedRows = selectedNodes;
|
|
|
|
for (var i = 0; i < selectedNodes.length; i++)
|
|
|
|
deselectNode (selectedNodes[i]);
|
|
|
|
|
2006-08-19 00:40:04 +02:00
|
|
|
topNode.menuSelectedEntry = element;
|
|
|
|
selectNode(element);
|
|
|
|
}
|
|
|
|
|
|
|
|
function onAppointmentContextMenuHide(event)
|
|
|
|
{
|
2006-08-24 20:48:33 +02:00
|
|
|
var topNode = $('appointmentsList');
|
2006-08-19 00:40:04 +02:00
|
|
|
|
|
|
|
if (topNode.menuSelectedEntry) {
|
|
|
|
deselectNode(topNode.menuSelectedEntry);
|
|
|
|
topNode.menuSelectedEntry = null;
|
|
|
|
}
|
|
|
|
if (topNode.menuSelectedRows) {
|
|
|
|
var nodeIds = topNode.menuSelectedRows;
|
|
|
|
for (var i = 0; i < nodeIds.length; i++) {
|
2006-08-24 20:48:33 +02:00
|
|
|
var node = $(nodeIds[i]);
|
2006-08-19 00:40:04 +02:00
|
|
|
selectNode (node);
|
|
|
|
}
|
|
|
|
topNode.menuSelectedRows = null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function onAppointmentsSelectionChange()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
function _loadAppointmentHref(href) {
|
2006-08-24 23:14:18 +02:00
|
|
|
if (document.appointmentsListAjaxRequest) {
|
|
|
|
document.appointmentsListAjaxRequest.aborted = true;
|
|
|
|
document.appointmentsListAjaxRequest.abort();
|
2006-08-19 00:40:04 +02:00
|
|
|
}
|
|
|
|
url = ApplicationBaseURL + href;
|
2006-08-24 23:14:18 +02:00
|
|
|
|
|
|
|
document.appointmentsListAjaxRequest
|
2006-08-19 00:40:04 +02:00
|
|
|
= triggerAjaxRequest(url, appointmentsListCallback, href);
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
function onHeaderClick(node)
|
|
|
|
{
|
2006-08-24 23:14:18 +02:00
|
|
|
return _loadAppointmentHref(node.getAttribute("href"));
|
2006-08-19 00:40:04 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
function refreshAppointments() {
|
2006-08-24 23:14:18 +02:00
|
|
|
return _loadAppointmentHref("aptlist?desc=" + sortOrder
|
|
|
|
+ "&sort=" + sortKey
|
|
|
|
+ "&day=" + currentDay
|
|
|
|
+ "&filterpopup=" + listFilter);
|
2006-08-19 00:40:04 +02:00
|
|
|
}
|
2006-08-22 00:36:33 +02:00
|
|
|
|
|
|
|
function onListFilterChange() {
|
2006-08-24 20:48:33 +02:00
|
|
|
var node = $("filterpopup");
|
2006-08-22 00:36:33 +02:00
|
|
|
|
|
|
|
listFilter = node.value;
|
|
|
|
// log ("listFilter = " + listFilter);
|
|
|
|
|
|
|
|
return refreshAppointments();
|
|
|
|
}
|
2006-08-22 21:18:30 +02:00
|
|
|
|
|
|
|
function onAppointmentClick(event)
|
|
|
|
{
|
|
|
|
var node = event.target.getParentWithTagName("tr");
|
2006-08-24 20:48:33 +02:00
|
|
|
changeCalendarDisplay(node.getAttribute("day"));
|
2006-08-22 21:18:30 +02:00
|
|
|
|
|
|
|
return onRowClick(event);
|
|
|
|
}
|
|
|
|
|
|
|
|
function selectMonthInMenu(menu, month)
|
|
|
|
{
|
|
|
|
var entries = menu.childNodes[1].childNodes;
|
|
|
|
for (i = 0; i < entries.length; i++) {
|
|
|
|
var entry = entries[i];
|
|
|
|
if (entry instanceof HTMLLIElement) {
|
|
|
|
var entryMonth = entry.getAttribute("month");
|
|
|
|
if (entryMonth == month)
|
|
|
|
entry.addClassName("currentMonth");
|
|
|
|
else
|
|
|
|
entry.removeClassName("currentMonth");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function selectYearInMenu(menu, month)
|
|
|
|
{
|
|
|
|
var entries = menu.childNodes[1].childNodes;
|
|
|
|
for (i = 0; i < entries.length; i++) {
|
|
|
|
var entry = entries[i];
|
|
|
|
if (entry instanceof HTMLLIElement) {
|
|
|
|
var entryMonth = entry.innerHTML;
|
|
|
|
if (entryMonth == month)
|
|
|
|
entry.addClassName("currentMonth");
|
|
|
|
else
|
|
|
|
entry.removeClassName("currentMonth");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function popupMonthMenu(event, menuId)
|
|
|
|
{
|
|
|
|
var node = event.target;
|
|
|
|
|
|
|
|
if (event.button == 0) {
|
|
|
|
event.cancelBubble = true;
|
|
|
|
event.returnValue = false;
|
|
|
|
|
|
|
|
if (document.currentPopupMenu)
|
|
|
|
hideMenu(event, document.currentPopupMenu);
|
|
|
|
|
2006-08-24 20:48:33 +02:00
|
|
|
var popup = $(menuId);
|
2006-08-22 21:18:30 +02:00
|
|
|
var id = node.getAttribute("id");
|
|
|
|
if (id == "monthLabel")
|
|
|
|
selectMonthInMenu(popup, node.getAttribute("month"));
|
|
|
|
else
|
|
|
|
selectYearInMenu(popup, node.innerHTML);
|
|
|
|
|
|
|
|
var diff = (popup.offsetWidth - node.offsetWidth) /2;
|
|
|
|
|
|
|
|
popup.style.top = (node.offsetTop + 95) + "px";
|
|
|
|
popup.style.left = (node.offsetLeft - diff) + "px";
|
|
|
|
popup.style.visibility = "visible";
|
|
|
|
|
|
|
|
bodyOnClick = "" + document.body.getAttribute("onclick");
|
|
|
|
document.body.setAttribute("onclick", "onBodyClick('" + menuId + "');");
|
|
|
|
document.currentPopupMenu = popup;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function onMonthMenuItemClick(node)
|
|
|
|
{
|
|
|
|
var month = '' + node.getAttribute("month");
|
2006-08-24 20:48:33 +02:00
|
|
|
var year = '' + $("yearLabel").innerHTML;
|
2006-08-22 21:18:30 +02:00
|
|
|
|
|
|
|
changeDateSelectorDisplay(year+month+"01");
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
function onYearMenuItemClick(node)
|
|
|
|
{
|
2006-08-24 20:48:33 +02:00
|
|
|
var month = '' + $("monthLabel").getAttribute("month");;
|
2006-08-22 21:18:30 +02:00
|
|
|
var year = '' + node.innerHTML;
|
|
|
|
|
|
|
|
changeDateSelectorDisplay(year+month+"01");
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|
2006-08-31 01:13:18 +02:00
|
|
|
|
|
|
|
function onSearchFormSubmit()
|
|
|
|
{
|
|
|
|
log ("search not implemented");
|
|
|
|
|
|
|
|
return false;
|
|
|
|
}
|