Monotone-Parent: 0dbfe804b643f92bc35b93367e1c120b395685a7

Monotone-Revision: 4540f3e456a8b7129b4cc6d8a8eea6373cc23df6

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2007-07-31T21:14:14
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2007-07-31 21:14:14 +00:00
parent 78f835b3e5
commit dc25f947b2
13 changed files with 77 additions and 47 deletions
+3 -3
View File
@@ -19,7 +19,7 @@ function onContactKeydown(event) {
if (this.confirmedValue)
this.value = this.confirmedValue;
var row = this.parentNode.parentNode.nextSibling;
while (!(row instanceof HTMLTableRowElement))
while (row && row.tagName != 'TR')
row = row.nextSibling;
this.blur();
var input = $(row.cells[0]).childNodesWithTag("input")[0];
@@ -203,7 +203,7 @@ function checkAttendee() {
this.focussed = false;
var th = this.parentNode.parentNode;
var tbody = th.parentNode;
if (this.value.trim().length == 0)
if (tbody && this.value.trim().length == 0)
tbody.removeChild(th);
else if (!this.hasfreebusy) {
if (this.confirmedValue)
@@ -535,4 +535,4 @@ function onFreeBusyLoadHandler() {
initializeFreebusys();
}
window.addEventListener("load", onFreeBusyLoadHandler, false);
addEvent(window, 'load', onFreeBusyLoadHandler);