diff --git a/ChangeLog b/ChangeLog index 123b30fba..d6fca10cd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2010-01-19 Wolfgang Sourdeau + + * UI/WebServerResources/ContactsUI.js (initContacts): fixed a bug + causing a null exception error on IE7 when the window is not the + main window, and is therefore missing the "uploadCancel" and + "uploadOK" elements. + 2010-01-18 Wolfgang Sourdeau * Tests/utilities.py: new module implementing utility classes and diff --git a/UI/WebServerResources/ContactsUI.js b/UI/WebServerResources/ContactsUI.js index bedf35647..9518d774c 100644 --- a/UI/WebServerResources/ContactsUI.js +++ b/UI/WebServerResources/ContactsUI.js @@ -1161,12 +1161,12 @@ function onDocumentKeydown(event) { function initContacts(event) { if ($(document.body).hasClassName("popup")) { configureSelectionButtons(); + } else { + // Addressbook import form + $("uploadCancel").observe("click", hideContactsImport); + $("uploadOK").observe("click", hideImportResults); } - // Addressbook import form - $("uploadCancel").observe("click", hideContactsImport); - $("uploadOK").observe("click", hideImportResults); - if (Prototype.Browser.Gecko) Event.observe(document, "keypress", onDocumentKeydown); // for FF2 else