Fix for bug 110775. Need to clear the subject and disable the editable field when caching the compose window and enabling those fields when we reopen the compose window. R=varada, SR=mscott

This commit is contained in:
ducarroz%netscape.com 2001-11-21 23:43:26 +00:00
Родитель 44799db9f9
Коммит 3ad8e2cff1
1 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -164,15 +164,25 @@ var gComposeRecyclingListener = {
onClose: function() {
awResetAllRows();
RemoveAllAttachments();
//We need to clear the identity popup menu in case the user will change them. It will be rebuilded later in ComposeStartup
ClearIdentityListPopup(document.getElementById("msgIdentityPopup"));
//Clear the subject
var element = document.getElementById("msgSubject");
if (element)
element.value = "";
SetContentAndBodyAsUnmodified();
disableEditableFields()
ReleaseGlobalVariables();
},
onReopen: function(params) {
dump("This is a recycled compose window!\n");
InitializeGlobalVariables();
enableEditableFields();
window.editorShell.contentWindow.focus();
ComposeStartup(true, params);
}
};