Minor JavaScript fix when saving a mail draft outside the Mail module.

Monotone-Parent: 3cf3591b19f9abd27fa7dcef1bd85574e88f3050
Monotone-Revision: 2e1565da869405c503b47261079abdaf1bcbe0dc

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2010-05-04T19:52:11
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2010-05-04 19:52:11 +00:00
parent 51bd8854bb
commit 2c43125079

View File

@@ -232,7 +232,7 @@ function deleteDraft(url) {
function refreshFolderByType(type) {
/* this is called by UIxMailEditor with window.opener */
if (Mailer && Mailer.currentMailboxType == type)
if (typeof Mailer != 'undefined' && Mailer.currentMailboxType == type)
refreshCurrentFolder();
}