Monotone-Parent: acf7876c4f7fe4bb25f13c6e2d07c55ad2567ab8
Monotone-Revision: 17dd4bd33946e587ae1addf6c96dbd2172128be9 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-03-19T14:31:49 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
parent
785cb10e41
commit
8eeae64d97
|
@ -84,8 +84,7 @@ function validateEditorInput(sender) {
|
|||
return true;
|
||||
}
|
||||
|
||||
function onContactsFolderTreeItemClick(element)
|
||||
{
|
||||
function onContactsFolderTreeItemClick(element) {
|
||||
var topNode = $('d');
|
||||
var contactsFolder = element.parentNode.getAttribute("dataname");
|
||||
|
||||
|
@ -103,8 +102,7 @@ function CurrentContactFolderURL() {
|
|||
: ApplicationBaseURL + currentContactFolder);
|
||||
}
|
||||
|
||||
function openContactsFolder(contactsFolder, params, external)
|
||||
{
|
||||
function openContactsFolder(contactsFolder, params, external) {
|
||||
if (contactsFolder != currentContactFolder || params) {
|
||||
if (contactsFolder == currentContactFolder) {
|
||||
var contactsList = $("contactsList");
|
||||
|
@ -147,8 +145,7 @@ function openContactsFolderAtIndex(element) {
|
|||
= triggerAjaxRequest(url, contactsListCallback);
|
||||
}
|
||||
|
||||
function contactsListCallback(http)
|
||||
{
|
||||
function contactsListCallback(http) {
|
||||
var div = $("contactsListContent");
|
||||
|
||||
if (http.readyState == 4
|
||||
|
@ -166,8 +163,7 @@ function contactsListCallback(http)
|
|||
log ("ajax fuckage 1");
|
||||
}
|
||||
|
||||
function onContactFoldersContextMenu(event)
|
||||
{
|
||||
function onContactFoldersContextMenu(event) {
|
||||
var menu = $("contactFoldersMenu");
|
||||
menu.addEventListener("hideMenu", onContactFoldersContextMenuHide, false);
|
||||
onMenuClick(event, "contactFoldersMenu");
|
||||
|
@ -181,8 +177,7 @@ function onContactFoldersContextMenu(event)
|
|||
this.select();
|
||||
}
|
||||
|
||||
function onContactContextMenu(event, element)
|
||||
{
|
||||
function onContactContextMenu(event, element) {
|
||||
var menu = $("contactMenu");
|
||||
menu.addEventListener("hideMenu", onContactContextMenuHide, false);
|
||||
onMenuClick(event, "contactMenu");
|
||||
|
@ -196,8 +191,7 @@ function onContactContextMenu(event, element)
|
|||
element.select();
|
||||
}
|
||||
|
||||
function onContactContextMenuHide(event)
|
||||
{
|
||||
function onContactContextMenuHide(event) {
|
||||
var topNode = $("contactsList");
|
||||
|
||||
if (topNode.menuSelectedEntry) {
|
||||
|
@ -212,8 +206,7 @@ function onContactContextMenuHide(event)
|
|||
}
|
||||
}
|
||||
|
||||
function onContactFoldersContextMenuHide(event)
|
||||
{
|
||||
function onContactFoldersContextMenuHide(event) {
|
||||
var topNode = $("contactFolders");
|
||||
|
||||
if (topNode.menuSelectedEntry) {
|
||||
|
@ -228,8 +221,7 @@ function onContactFoldersContextMenuHide(event)
|
|||
}
|
||||
}
|
||||
|
||||
function onFolderMenuHide(event)
|
||||
{
|
||||
function onFolderMenuHide(event) {
|
||||
var topNode = $('d');
|
||||
|
||||
if (topNode.menuSelectedEntry) {
|
||||
|
@ -240,8 +232,7 @@ function onFolderMenuHide(event)
|
|||
topNode.selectedEntry.select();
|
||||
}
|
||||
|
||||
function loadContact(idx)
|
||||
{
|
||||
function loadContact(idx) {
|
||||
if (document.contactAjaxRequest) {
|
||||
document.contactAjaxRequest.aborted = true;
|
||||
document.contactAjaxRequest.abort();
|
||||
|
@ -259,8 +250,7 @@ function loadContact(idx)
|
|||
}
|
||||
}
|
||||
|
||||
function contactLoadCallback(http)
|
||||
{
|
||||
function contactLoadCallback(http) {
|
||||
var div = $('contactView');
|
||||
|
||||
if (http.readyState == 4
|
||||
|
@ -304,15 +294,13 @@ function moveTo(uri) {
|
|||
}
|
||||
|
||||
/* contact menu entries */
|
||||
function onContactRowClick(event, node)
|
||||
{
|
||||
function onContactRowClick(event, node) {
|
||||
loadContact(node.getAttribute('id'));
|
||||
|
||||
return onRowClick(event);
|
||||
}
|
||||
|
||||
function onContactRowDblClick(event, node)
|
||||
{
|
||||
function onContactRowDblClick(event, node) {
|
||||
var contactId = node.getAttribute('id');
|
||||
|
||||
openContactWindow(null,
|
||||
|
@ -322,8 +310,7 @@ function onContactRowDblClick(event, node)
|
|||
return false;
|
||||
}
|
||||
|
||||
function onMenuEditContact(event, node)
|
||||
{
|
||||
function onMenuEditContact(event, node) {
|
||||
var node = getParentMenu(node).menuTarget.parentNode;
|
||||
var contactId = node.getAttribute('id');
|
||||
|
||||
|
@ -334,8 +321,7 @@ function onMenuEditContact(event, node)
|
|||
return false;
|
||||
}
|
||||
|
||||
function onMenuWriteToContact(event, node)
|
||||
{
|
||||
function onMenuWriteToContact(event, node) {
|
||||
var node = getParentMenu(node).menuTarget.parentNode;
|
||||
var contactId = node.getAttribute('id');
|
||||
|
||||
|
@ -345,15 +331,13 @@ function onMenuWriteToContact(event, node)
|
|||
return false;
|
||||
}
|
||||
|
||||
function onMenuDeleteContact(event, node)
|
||||
{
|
||||
function onMenuDeleteContact(event, node) {
|
||||
uixDeleteSelectedContacts(node);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function onToolbarEditSelectedContacts(event)
|
||||
{
|
||||
function onToolbarEditSelectedContacts(event) {
|
||||
var contactsList = $('contactsList');
|
||||
var rows = contactsList.getSelectedRowsId();
|
||||
|
||||
|
@ -366,8 +350,7 @@ function onToolbarEditSelectedContacts(event)
|
|||
return false;
|
||||
}
|
||||
|
||||
function onToolbarWriteToSelectedContacts(event)
|
||||
{
|
||||
function onToolbarWriteToSelectedContacts(event) {
|
||||
var contactsList = $('contactsList');
|
||||
var rows = contactsList.getSelectedRowsId();
|
||||
|
||||
|
@ -378,8 +361,7 @@ function onToolbarWriteToSelectedContacts(event)
|
|||
return false;
|
||||
}
|
||||
|
||||
function uixDeleteSelectedContacts(sender)
|
||||
{
|
||||
function uixDeleteSelectedContacts(sender) {
|
||||
var failCount = 0;
|
||||
var contactsList = $('contactsList');
|
||||
var rows = contactsList.getSelectedRowsId();
|
||||
|
@ -432,8 +414,7 @@ function newEmailTo(sender) {
|
|||
return false; /* stop following the link */
|
||||
}
|
||||
|
||||
function onHeaderClick(event)
|
||||
{
|
||||
function onHeaderClick(event) {
|
||||
if (document.contactsListAjaxRequest) {
|
||||
document.contactsListAjaxRequest.aborted = true;
|
||||
document.contactsListAjaxRequest.abort();
|
||||
|
@ -447,8 +428,7 @@ function onHeaderClick(event)
|
|||
event.preventDefault();
|
||||
}
|
||||
|
||||
function registerDraggableMessageNodes()
|
||||
{
|
||||
function registerDraggableMessageNodes() {
|
||||
log ("can we drag...");
|
||||
}
|
||||
|
||||
|
@ -459,8 +439,7 @@ function newContact(sender) {
|
|||
return false; /* stop following the link */
|
||||
}
|
||||
|
||||
function onFolderSelectionChange()
|
||||
{
|
||||
function onFolderSelectionChange() {
|
||||
var folderList = $("contactFolders");
|
||||
var nodes = folderList.getSelectedNodes();
|
||||
$("contactView").innerHTML = '';
|
||||
|
@ -481,8 +460,7 @@ function onFolderSelectionChange()
|
|||
}
|
||||
}
|
||||
|
||||
function onSearchFormSubmit()
|
||||
{
|
||||
function onSearchFormSubmit() {
|
||||
var searchValue = $("searchValue");
|
||||
|
||||
openContactsFolder(currentContactFolder, "search=" + searchValue.value);
|
||||
|
@ -490,8 +468,7 @@ function onSearchFormSubmit()
|
|||
return false;
|
||||
}
|
||||
|
||||
function onConfirmContactSelection(tag)
|
||||
{
|
||||
function onConfirmContactSelection(tag) {
|
||||
var folderLi = $(currentContactFolder);
|
||||
var currentContactFolderName = folderLi.innerHTML;
|
||||
var selectorList = null;
|
||||
|
|
|
@ -221,8 +221,7 @@ function reopenToRemoveLocationBar() {
|
|||
|
||||
/* mail list reply */
|
||||
|
||||
function openMessageWindowsForSelection(action)
|
||||
{
|
||||
function openMessageWindowsForSelection(action) {
|
||||
if (document.body.hasClassName("popup"))
|
||||
win = openMessageWindow(window.messageId,
|
||||
window.messageURL + "/" + action /* url */);
|
||||
|
@ -266,16 +265,14 @@ function mailListMarkMessage(event) {
|
|||
|
||||
var oldMaillistHighlight = null; // to remember deleted/selected style
|
||||
|
||||
function ml_highlight(sender)
|
||||
{
|
||||
function ml_highlight(sender) {
|
||||
oldMaillistHighlight = sender.className;
|
||||
if (oldMaillistHighlight == "tableview_highlight")
|
||||
oldMaillistHighlight = null;
|
||||
sender.className = "tableview_highlight";
|
||||
}
|
||||
|
||||
function ml_lowlight(sender)
|
||||
{
|
||||
function ml_lowlight(sender) {
|
||||
if (oldMaillistHighlight) {
|
||||
sender.className = oldMaillistHighlight;
|
||||
oldMaillistHighlight = null;
|
||||
|
@ -418,8 +415,7 @@ function refreshMailbox() {
|
|||
return false;
|
||||
}
|
||||
|
||||
function openMailbox(mailbox, reload)
|
||||
{
|
||||
function openMailbox(mailbox, reload) {
|
||||
if (mailbox != currentMailbox || reload) {
|
||||
currentMailbox = mailbox;
|
||||
var url = ApplicationBaseURL + mailbox + "/view?noframe=1&desc=1";
|
||||
|
@ -478,8 +474,7 @@ function openMailboxAtIndex(element) {
|
|||
return false;
|
||||
}
|
||||
|
||||
function messageListCallback(http)
|
||||
{
|
||||
function messageListCallback(http) {
|
||||
var div = $('mailboxContent');
|
||||
|
||||
if (http.readyState == 4
|
||||
|
@ -498,8 +493,7 @@ function messageListCallback(http)
|
|||
log ("ajax fuckage");
|
||||
}
|
||||
|
||||
function onMessageContextMenu(event)
|
||||
{
|
||||
function onMessageContextMenu(event) {
|
||||
var menu = $('messageListMenu');
|
||||
menu.addEventListener("hideMenu", onMessageContextMenuHide, false);
|
||||
onMenuClick(event, 'messageListMenu');
|
||||
|
@ -513,8 +507,7 @@ function onMessageContextMenu(event)
|
|||
this.select();
|
||||
}
|
||||
|
||||
function onMessageContextMenuHide(event)
|
||||
{
|
||||
function onMessageContextMenuHide(event) {
|
||||
var topNode = $('messageList');
|
||||
|
||||
if (topNode.menuSelectedEntry) {
|
||||
|
@ -529,8 +522,7 @@ function onMessageContextMenuHide(event)
|
|||
}
|
||||
}
|
||||
|
||||
function onFolderMenuClick(event)
|
||||
{
|
||||
function onFolderMenuClick(event) {
|
||||
var onhide, menuName;
|
||||
|
||||
var menutype = this.parentNode.getAttribute("datatype");
|
||||
|
@ -563,8 +555,7 @@ function onFolderMenuClick(event)
|
|||
this.select();
|
||||
}
|
||||
|
||||
function onFolderMenuHide(event)
|
||||
{
|
||||
function onFolderMenuHide(event) {
|
||||
var topNode = $('d');
|
||||
|
||||
if (topNode.menuSelectedEntry) {
|
||||
|
@ -590,8 +581,7 @@ function deleteCachedMessage(messageId) {
|
|||
counter++;
|
||||
}
|
||||
|
||||
function getCachedMessage(idx)
|
||||
{
|
||||
function getCachedMessage(idx) {
|
||||
var message = null;
|
||||
var counter = 0;
|
||||
|
||||
|
@ -606,8 +596,7 @@ function getCachedMessage(idx)
|
|||
return message;
|
||||
}
|
||||
|
||||
function storeCachedMessage(cachedMessage)
|
||||
{
|
||||
function storeCachedMessage(cachedMessage) {
|
||||
var oldest = -1;
|
||||
var timeOldest = -1;
|
||||
var counter = 0;
|
||||
|
@ -631,8 +620,7 @@ function storeCachedMessage(cachedMessage)
|
|||
cachedMessages[oldest] = cachedMessage;
|
||||
}
|
||||
|
||||
function onMessageSelectionChange()
|
||||
{
|
||||
function onMessageSelectionChange() {
|
||||
var rows = this.getSelectedRowsId();
|
||||
if (rows.length == 1) {
|
||||
var idx = rows[0].substr(4);
|
||||
|
@ -644,8 +632,7 @@ function onMessageSelectionChange()
|
|||
}
|
||||
}
|
||||
|
||||
function loadMessage(idx)
|
||||
{
|
||||
function loadMessage(idx) {
|
||||
var cachedMessage = getCachedMessage(idx);
|
||||
|
||||
if (document.messageAjaxRequest) {
|
||||
|
@ -667,8 +654,7 @@ function loadMessage(idx)
|
|||
}
|
||||
}
|
||||
|
||||
function messageCallback(http)
|
||||
{
|
||||
function messageCallback(http) {
|
||||
var div = $('messageContent');
|
||||
|
||||
if (http.readyState == 4
|
||||
|
@ -689,8 +675,7 @@ function messageCallback(http)
|
|||
log ("ajax fuckage");
|
||||
}
|
||||
|
||||
function processMailboxMenuAction(mailbox)
|
||||
{
|
||||
function processMailboxMenuAction(mailbox) {
|
||||
var currentNode, upperNode;
|
||||
var mailboxName;
|
||||
var action;
|
||||
|
@ -742,13 +727,11 @@ function moveTo(uri) {
|
|||
alert("MoveTo: " + uri);
|
||||
}
|
||||
|
||||
function deleteSelectedMails()
|
||||
{
|
||||
function deleteSelectedMails() {
|
||||
}
|
||||
|
||||
/* message menu entries */
|
||||
function onMenuOpenMessage(event)
|
||||
{
|
||||
function onMenuOpenMessage(event) {
|
||||
var node = getParentMenu(event.target).menuTarget.parentNode;
|
||||
var msgId = node.getAttribute('id').substr(4);
|
||||
|
||||
|
@ -792,8 +775,7 @@ function newEmailTo(sender) {
|
|||
return openMailTo(sender.parentNode.parentNode.menuTarget.innerHTML);
|
||||
}
|
||||
|
||||
function expandUpperTree(node)
|
||||
{
|
||||
function expandUpperTree(node) {
|
||||
var currentNode = node.parentNode;
|
||||
|
||||
while (currentNode.className != "dtree")
|
||||
|
@ -812,8 +794,7 @@ function expandUpperTree(node)
|
|||
}
|
||||
}
|
||||
|
||||
function initMailboxSelection(mailboxName)
|
||||
{
|
||||
function initMailboxSelection(mailboxName) {
|
||||
currentMailbox = mailboxName;
|
||||
log("initMailboxSelection: " + mailboxName);
|
||||
var tree = $("d");
|
||||
|
@ -833,8 +814,7 @@ function initMailboxSelection(mailboxName)
|
|||
}
|
||||
}
|
||||
|
||||
function onHeaderClick(event)
|
||||
{
|
||||
function onHeaderClick(event) {
|
||||
if (document.messageListAjaxRequest) {
|
||||
document.messageListAjaxRequest.aborted = true;
|
||||
document.messageListAjaxRequest.abort();
|
||||
|
@ -848,8 +828,7 @@ function onHeaderClick(event)
|
|||
event.preventDefault();
|
||||
}
|
||||
|
||||
function onSearchFormSubmit()
|
||||
{
|
||||
function onSearchFormSubmit() {
|
||||
log ("search not implemented");
|
||||
|
||||
return false;
|
||||
|
|
|
@ -37,7 +37,7 @@ function newEvent(sender, type) {
|
|||
if (params.length > 0)
|
||||
urlstr += "?" + params.join("&");
|
||||
|
||||
window.open(urlstr, "", "width=463,height=600,resizable=0");
|
||||
window.open(urlstr, "", "width=490,height=600,resizable=0");
|
||||
|
||||
return false; /* stop following the link */
|
||||
}
|
||||
|
@ -51,7 +51,7 @@ function _editEventId(id, owner) {
|
|||
var urlstr = urlBase + id + "/edit";
|
||||
|
||||
var win = window.open(urlstr, "SOGo_edit_" + id,
|
||||
"width=463,height=600,resizable=0");
|
||||
"width=490,height=600,resizable=0");
|
||||
win.focus();
|
||||
}
|
||||
|
||||
|
@ -80,8 +80,7 @@ function _batchDeleteEvents() {
|
|||
events);
|
||||
}
|
||||
|
||||
function deleteEvent()
|
||||
{
|
||||
function deleteEvent() {
|
||||
if (listOfSelection) {
|
||||
var nodes = listOfSelection.getSelectedRows();
|
||||
|
||||
|
@ -178,8 +177,7 @@ function modifyEventCallback(http) {
|
|||
}
|
||||
}
|
||||
|
||||
function deleteEventCallback(http)
|
||||
{
|
||||
function deleteEventCallback(http) {
|
||||
if (http.readyState == 4
|
||||
&& http.status == 200) {
|
||||
var nodes = http.callbackData;
|
||||
|
@ -201,8 +199,7 @@ function deleteEventCallback(http)
|
|||
log ("ajax fuckage");
|
||||
}
|
||||
|
||||
function editDoubleClickedEvent(node)
|
||||
{
|
||||
function editDoubleClickedEvent(node) {
|
||||
_editEventId(node.getAttribute("id"),
|
||||
node.getAttribute("owner"));
|
||||
|
||||
|
@ -226,8 +223,7 @@ function displayAppointment(event) {
|
|||
event.returnValue = false;
|
||||
}
|
||||
|
||||
function onDaySelect(node)
|
||||
{
|
||||
function onDaySelect(node) {
|
||||
var day = node.getAttribute("day");
|
||||
var needRefresh = (listFilter == 'view_selectedday'
|
||||
&& day != currentDay);
|
||||
|
@ -250,8 +246,7 @@ function onDaySelect(node)
|
|||
return false;
|
||||
}
|
||||
|
||||
function onDateSelectorGotoMonth(node)
|
||||
{
|
||||
function onDateSelectorGotoMonth(node) {
|
||||
var day = node.getAttribute("date");
|
||||
|
||||
changeDateSelectorDisplay(day, true);
|
||||
|
@ -259,8 +254,7 @@ function onDateSelectorGotoMonth(node)
|
|||
return false;
|
||||
}
|
||||
|
||||
function onCalendarGotoDay(node)
|
||||
{
|
||||
function onCalendarGotoDay(node) {
|
||||
var day = node.getAttribute("date");
|
||||
|
||||
changeDateSelectorDisplay(day);
|
||||
|
@ -269,16 +263,14 @@ function onCalendarGotoDay(node)
|
|||
return false;
|
||||
}
|
||||
|
||||
function gotoToday()
|
||||
{
|
||||
function gotoToday() {
|
||||
changeDateSelectorDisplay('');
|
||||
changeCalendarDisplay();
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function setDateSelectorContent(content)
|
||||
{
|
||||
function setDateSelectorContent(content) {
|
||||
var div = $("dateSelectorView");
|
||||
|
||||
div.innerHTML = content;
|
||||
|
@ -286,8 +278,7 @@ function setDateSelectorContent(content)
|
|||
restoreCurrentDaySelection(div);
|
||||
}
|
||||
|
||||
function dateSelectorCallback(http)
|
||||
{
|
||||
function dateSelectorCallback(http) {
|
||||
if (http.readyState == 4
|
||||
&& http.status == 200) {
|
||||
document.dateSelectorAjaxRequest = null;
|
||||
|
@ -299,8 +290,7 @@ function dateSelectorCallback(http)
|
|||
log ("ajax fuckage");
|
||||
}
|
||||
|
||||
function appointmentsListCallback(http)
|
||||
{
|
||||
function appointmentsListCallback(http) {
|
||||
var div = $("appointmentsListView");
|
||||
|
||||
if (http.readyState == 4
|
||||
|
@ -319,8 +309,7 @@ function appointmentsListCallback(http)
|
|||
log ("ajax fuckage");
|
||||
}
|
||||
|
||||
function tasksListCallback(http)
|
||||
{
|
||||
function tasksListCallback(http) {
|
||||
var div = $("tasksListView");
|
||||
|
||||
if (http.readyState == 4
|
||||
|
@ -343,8 +332,7 @@ function tasksListCallback(http)
|
|||
log ("ajax fuckage");
|
||||
}
|
||||
|
||||
function restoreCurrentDaySelection(div)
|
||||
{
|
||||
function restoreCurrentDaySelection(div) {
|
||||
var elements = div.getElementsByTagName("a");
|
||||
var day = null;
|
||||
var i = 9;
|
||||
|
@ -369,8 +357,7 @@ function restoreCurrentDaySelection(div)
|
|||
}
|
||||
}
|
||||
|
||||
function changeDateSelectorDisplay(day, keepCurrentDay)
|
||||
{
|
||||
function changeDateSelectorDisplay(day, keepCurrentDay) {
|
||||
var url = ApplicationBaseURL + "dateselector";
|
||||
if (day)
|
||||
url += "?day=" + day;
|
||||
|
@ -399,8 +386,7 @@ function changeDateSelectorDisplay(day, keepCurrentDay)
|
|||
}
|
||||
}
|
||||
|
||||
function changeCalendarDisplay(time, newView)
|
||||
{
|
||||
function changeCalendarDisplay(time, newView) {
|
||||
var url = ApplicationBaseURL + ((newView) ? newView : currentView);
|
||||
|
||||
selectedCalendarCell = null;
|
||||
|
@ -442,28 +428,23 @@ function _ensureView(view) {
|
|||
return false;
|
||||
}
|
||||
|
||||
function onDayOverview()
|
||||
{
|
||||
function onDayOverview() {
|
||||
return _ensureView("dayview");
|
||||
}
|
||||
|
||||
function onMulticolumnDayOverview()
|
||||
{
|
||||
function onMulticolumnDayOverview() {
|
||||
return _ensureView("multicolumndayview");
|
||||
}
|
||||
|
||||
function onWeekOverview()
|
||||
{
|
||||
function onWeekOverview() {
|
||||
return _ensureView("weekview");
|
||||
}
|
||||
|
||||
function onMonthOverview()
|
||||
{
|
||||
function onMonthOverview() {
|
||||
return _ensureView("monthview");
|
||||
}
|
||||
|
||||
function scrollDayView(hour)
|
||||
{
|
||||
function scrollDayView(hour) {
|
||||
var rowNumber;
|
||||
if (hour) {
|
||||
if (hour.length == 3)
|
||||
|
@ -490,8 +471,7 @@ function onClickableCellsDblClick(event) {
|
|||
event.returnValue = false;
|
||||
}
|
||||
|
||||
function calendarDisplayCallback(http)
|
||||
{
|
||||
function calendarDisplayCallback(http) {
|
||||
var div = $("calendarView");
|
||||
|
||||
// log ("calendardisplaycallback: " + div);
|
||||
|
@ -561,8 +541,7 @@ function popupCalendar(node) {
|
|||
return false;
|
||||
}
|
||||
|
||||
function onAppointmentContextMenu(event, element)
|
||||
{
|
||||
function onAppointmentContextMenu(event, element) {
|
||||
var topNode = $("appointmentsList");
|
||||
// log(topNode);
|
||||
|
||||
|
@ -581,8 +560,7 @@ function onAppointmentContextMenu(event, element)
|
|||
element.select();
|
||||
}
|
||||
|
||||
function onAppointmentContextMenuHide(event)
|
||||
{
|
||||
function onAppointmentContextMenuHide(event) {
|
||||
var topNode = $("appointmentsList");
|
||||
|
||||
if (topNode.menuSelectedEntry) {
|
||||
|
@ -655,8 +633,7 @@ function refreshTasks() {
|
|||
return _loadTasksHref("taskslist?hide-completed=" + hideCompletedTasks);
|
||||
}
|
||||
|
||||
function refreshAppointmentsAndDisplay()
|
||||
{
|
||||
function refreshAppointmentsAndDisplay() {
|
||||
refreshAppointments();
|
||||
changeCalendarDisplay();
|
||||
}
|
||||
|
@ -670,8 +647,7 @@ function onListFilterChange() {
|
|||
return refreshAppointments();
|
||||
}
|
||||
|
||||
function onAppointmentClick(event)
|
||||
{
|
||||
function onAppointmentClick(event) {
|
||||
var node = event.target.getParentWithTagName("tr");
|
||||
var day = node.getAttribute("day");
|
||||
var hour = node.getAttribute("hour");
|
||||
|
@ -682,8 +658,7 @@ function onAppointmentClick(event)
|
|||
return onRowClick(event);
|
||||
}
|
||||
|
||||
function selectMonthInMenu(menu, month)
|
||||
{
|
||||
function selectMonthInMenu(menu, month) {
|
||||
var entries = menu.childNodes[1].childNodesWithTag("LI");
|
||||
for (i = 0; i < entries.length; i++) {
|
||||
var entry = entries[i];
|
||||
|
@ -695,8 +670,7 @@ function selectMonthInMenu(menu, month)
|
|||
}
|
||||
}
|
||||
|
||||
function selectYearInMenu(menu, month)
|
||||
{
|
||||
function selectYearInMenu(menu, month) {
|
||||
var entries = menu.childNodes[1].childNodes;
|
||||
for (i = 0; i < entries.length; i++) {
|
||||
var entry = entries[i];
|
||||
|
@ -710,8 +684,7 @@ function selectYearInMenu(menu, month)
|
|||
}
|
||||
}
|
||||
|
||||
function popupMonthMenu(event, menuId)
|
||||
{
|
||||
function popupMonthMenu(event, menuId) {
|
||||
var node = event.target;
|
||||
|
||||
if (event.button == 0) {
|
||||
|
@ -740,8 +713,7 @@ function popupMonthMenu(event, menuId)
|
|||
}
|
||||
}
|
||||
|
||||
function onMonthMenuItemClick(node)
|
||||
{
|
||||
function onMonthMenuItemClick(node) {
|
||||
var month = '' + node.getAttribute("month");
|
||||
var year = '' + $("yearLabel").innerHTML;
|
||||
|
||||
|
@ -832,8 +804,7 @@ function findMonthCalendarSelectedCell(daysContainer) {
|
|||
}
|
||||
}
|
||||
|
||||
function changeMonthCalendarDisplayOfSelectedDay(node)
|
||||
{
|
||||
function changeMonthCalendarDisplayOfSelectedDay(node) {
|
||||
var daysContainer = node.parentNode;
|
||||
if (!daysContainer.selectedCell)
|
||||
findMonthCalendarSelectedCell(daysContainer);
|
||||
|
@ -844,15 +815,13 @@ function changeMonthCalendarDisplayOfSelectedDay(node)
|
|||
node.addClassName("selectedDay");
|
||||
}
|
||||
|
||||
function onHideCompletedTasks(node)
|
||||
{
|
||||
function onHideCompletedTasks(node) {
|
||||
hideCompletedTasks = (node.checked ? 1 : 0);
|
||||
|
||||
return refreshTasks();
|
||||
}
|
||||
|
||||
function updateTaskStatus(node)
|
||||
{
|
||||
function updateTaskStatus(node) {
|
||||
var taskId = node.parentNode.getAttribute("id");
|
||||
var taskOwner = node.parentNode.getAttribute("owner");
|
||||
var newStatus = (node.checked ? 1 : 0);
|
||||
|
@ -877,8 +846,7 @@ function updateTaskStatus(node)
|
|||
return false;
|
||||
}
|
||||
|
||||
function updateCalendarStatus()
|
||||
{
|
||||
function updateCalendarStatus() {
|
||||
var list = new Array();
|
||||
|
||||
var clist = $("calendarsList");
|
||||
|
@ -904,8 +872,7 @@ function updateCalendarStatus()
|
|||
return false;
|
||||
}
|
||||
|
||||
function calendarUidsList()
|
||||
{
|
||||
function calendarUidsList() {
|
||||
var list = "";
|
||||
|
||||
var nodes = $("uixselector-calendarsList-display").childNodesWithTag("li");
|
||||
|
@ -937,8 +904,7 @@ function calendarUidsList()
|
|||
// }
|
||||
// }
|
||||
|
||||
function inhibitMyCalendarEntry()
|
||||
{
|
||||
function inhibitMyCalendarEntry() {
|
||||
var clist = $("calendarsList");
|
||||
var nodes = clist.childNodes[5].childNodes;
|
||||
var done = false;
|
||||
|
@ -994,8 +960,7 @@ function ensureSelfIfPresent() {
|
|||
}
|
||||
}
|
||||
|
||||
function updateCalendarsList(method)
|
||||
{
|
||||
function updateCalendarsList(method) {
|
||||
ensureSelfIfPresent();
|
||||
var url = (ApplicationBaseURL + "updateCalendars?ids="
|
||||
+ calendarUidsList());
|
||||
|
@ -1036,8 +1001,7 @@ function updateCalendarsList(method)
|
|||
}
|
||||
}
|
||||
|
||||
function addContact(tag, fullContactName, contactId, contactName, contactEmail)
|
||||
{
|
||||
function addContact(tag, fullContactName, contactId, contactName, contactEmail) {
|
||||
var uids = $("uixselector-calendarsList-uidList");
|
||||
// log("addContact");
|
||||
if (contactId)
|
||||
|
|
|
@ -137,8 +137,7 @@ function toggleCycleVisibility(node, nodeName, hiddenValue) {
|
|||
}
|
||||
}
|
||||
|
||||
function addContact(tag, fullContactName, contactId, contactName, contactEmail)
|
||||
{
|
||||
function addContact(tag, fullContactName, contactId, contactName, contactEmail) {
|
||||
var uids = $('uixselector-participants-uidList');
|
||||
log ("contactId: " + contactId);
|
||||
if (contactId)
|
||||
|
|
|
@ -90,8 +90,7 @@ function updateResults(http) {
|
|||
}
|
||||
}
|
||||
|
||||
function resetFreeBusyZone()
|
||||
{
|
||||
function resetFreeBusyZone() {
|
||||
var table = $("freeBusy");
|
||||
var row = table.tHead.rows[2];
|
||||
for (var i = 1; i < row.cells.length; i++) {
|
||||
|
@ -101,8 +100,7 @@ function resetFreeBusyZone()
|
|||
}
|
||||
}
|
||||
|
||||
function redisplayFreeBusyZone()
|
||||
{
|
||||
function redisplayFreeBusyZone() {
|
||||
var table = $("freeBusy");
|
||||
var row = table.tHead.rows[2];
|
||||
var stDay = $("startTime_date").valueAsDate();
|
||||
|
@ -166,8 +164,7 @@ function redisplayFreeBusyZone()
|
|||
}
|
||||
}
|
||||
|
||||
function newAttendee(event)
|
||||
{
|
||||
function newAttendee(event) {
|
||||
var table = $("freeBusy");
|
||||
var tbody = table.tBodies[0];
|
||||
var model = tbody.rows[tbody.rows.length - 1];
|
||||
|
@ -184,8 +181,7 @@ function newAttendee(event)
|
|||
input.focussed = true;
|
||||
}
|
||||
|
||||
function checkAttendee()
|
||||
{
|
||||
function checkAttendee() {
|
||||
this.focussed = false;
|
||||
var th = this.parentNode.parentNode;
|
||||
var tbody = th.parentNode;
|
||||
|
@ -200,8 +196,7 @@ function checkAttendee()
|
|||
resetAttendeesValue();
|
||||
}
|
||||
|
||||
function displayFreeBusyForNode(node)
|
||||
{
|
||||
function displayFreeBusyForNode(node) {
|
||||
var nodes = node.parentNode.parentNode.cells;
|
||||
if (node.uid) {
|
||||
for (var i = 1; i < nodes.length; i++) {
|
||||
|
@ -250,8 +245,7 @@ function setSlot(tds, nbr, status) {
|
|||
}
|
||||
}
|
||||
|
||||
function updateFreeBusyData(http)
|
||||
{
|
||||
function updateFreeBusyData(http) {
|
||||
if (http.readyState == 4) {
|
||||
if (http.status == 200) {
|
||||
var node = http.callbackData;
|
||||
|
@ -268,8 +262,7 @@ function updateFreeBusyData(http)
|
|||
}
|
||||
}
|
||||
|
||||
function resetAttendeesValue()
|
||||
{
|
||||
function resetAttendeesValue() {
|
||||
var table = $("freeBusy");
|
||||
var inputs = table.getElementsByTagName("input");
|
||||
var uids = new Array();
|
||||
|
@ -289,8 +282,7 @@ function resetAttendeesValue()
|
|||
inputs[inputs.length - 2].addEventListener("click", newAttendee, false);
|
||||
}
|
||||
|
||||
function resetAllFreeBusys()
|
||||
{
|
||||
function resetAllFreeBusys() {
|
||||
var table = $("freeBusy");
|
||||
var inputs = table.getElementsByTagName("input");
|
||||
|
||||
|
@ -374,8 +366,7 @@ function initializeTimeWidgets() {
|
|||
$("endTime_time_minute").addEventListener("change", onTimeWidgetChange, false);
|
||||
}
|
||||
|
||||
function onTimeWidgetChange()
|
||||
{
|
||||
function onTimeWidgetChange() {
|
||||
redisplayFreeBusyZone();
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
var contactSelectorAction = 'mailer-contacts';
|
||||
|
||||
function addContact(tag, fullContactName, contactId, contactName, contactEmail)
|
||||
{
|
||||
function addContact(tag, fullContactName, contactId, contactName, contactEmail) {
|
||||
if (!mailIsRecipient(contactEmail)) {
|
||||
var neededOptionValue = 0;
|
||||
if (tag == "cc")
|
||||
|
|
|
@ -126,8 +126,7 @@ function toggleCycleVisibility(node, nodeName, hiddenValue) {
|
|||
}
|
||||
}
|
||||
|
||||
function addContact(tag, fullContactName, contactId, contactName, contactEmail)
|
||||
{
|
||||
function addContact(tag, fullContactName, contactId, contactName, contactEmail) {
|
||||
var uids = $('uixselector-participants-uidList');
|
||||
log ("contactId: " + contactId);
|
||||
if (contactId)
|
||||
|
|
|
@ -35,8 +35,7 @@ var activeAjaxRequests = 0;
|
|||
var allDocumentElements = null;
|
||||
|
||||
/* a W3C compliant document.all */
|
||||
function getAllScopeElements(scope)
|
||||
{
|
||||
function getAllScopeElements(scope) {
|
||||
var elements = new Array();
|
||||
|
||||
for (var i = 0; i < scope.childNodes.length; i++)
|
||||
|
@ -53,8 +52,7 @@ function getAllScopeElements(scope)
|
|||
return elements;
|
||||
}
|
||||
|
||||
function getAllElements(scope)
|
||||
{
|
||||
function getAllElements(scope) {
|
||||
var elements;
|
||||
|
||||
if (scope == null)
|
||||
|
@ -774,8 +772,7 @@ function popupToolbarMenu(event, menuId) {
|
|||
|
||||
/* contact selector */
|
||||
|
||||
function onContactAdd(node)
|
||||
{
|
||||
function onContactAdd(node) {
|
||||
var selector = null;
|
||||
var selectorURL = '?popup=YES';
|
||||
if (node) {
|
||||
|
@ -830,8 +827,7 @@ function listRowMouseDownHandler(event) {
|
|||
}
|
||||
|
||||
/* tabs */
|
||||
function initTabs()
|
||||
{
|
||||
function initTabs() {
|
||||
var containers = document.getElementsByClassName("tabsContainer");
|
||||
for (var x = 0; x < containers.length; x++) {
|
||||
var container = containers[x];
|
||||
|
|
Loading…
Reference in a new issue