Removed reference to FastInit.js

Monotone-Parent: 244f630f9b5b56de06c1348c5371d785e2f3d3a3
Monotone-Revision: 3a4ed372ee2495e9c893842ebe71384ea3ebcd65

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2009-03-12T21:09:14
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2009-03-12 21:09:14 +00:00
parent 40b6d7a77c
commit 21ab040534
22 changed files with 52 additions and 48 deletions

View File

@@ -262,7 +262,7 @@ function clickedEditorSave(sender) {
document.pageform.action = "save";
document.pageform.submit();
if (window.opener && window.open && !window.closed)
if (window.opener && window.opener.open && !window.opener.closed)
window.opener.refreshFolderByType('draft');
return false;
}
@@ -569,7 +569,7 @@ function initMailEditor() {
var subjectField = $$("div#subjectRow input").first();
initTabIndex($("addressList"), subjectField, textarea);
onWindowResize(null);
onWindowResize.defer();
Event.observe(window, "resize", onWindowResize);
Event.observe(window, "beforeunload", onMailEditorClose);
@@ -722,7 +722,7 @@ function onWindowResize(event) {
// Resize address fields
var addresslist = $('addressList');
addresslist.setStyle({ width: ($(this).width() - attachmentswidth - 10) + 'px' });
addresslist.setStyle({ width: ($(window).width() - attachmentswidth - 10) + 'px' });
// Set textarea position
var hr = headerarea.select("hr").first();
@@ -752,4 +752,4 @@ function onMailEditorClose(event) {
Event.stopObserving(window, "beforeunload", onMailEditorClose);
}
FastInit.addOnLoad(initMailEditor);
document.observe("dom:loaded", initMailEditor);