зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
44799db9f9
Коммит
3ad8e2cff1
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче