зеркало из https://github.com/mozilla/pjs.git
fixing bug 152895 - msg header pane loses focus. r=ducarroz, sr=mscott
This commit is contained in:
Родитель
eafee4dcd2
Коммит
0468bc653c
|
@ -177,11 +177,6 @@ function enableEditableFields()
|
|||
|
||||
var gComposeRecyclingListener = {
|
||||
onClose: function() {
|
||||
//Reset focus to avoid undesirable visual effect when reopening the winodw
|
||||
var identityElement = document.getElementById("msgIdentity");
|
||||
if (identityElement)
|
||||
identityElement.focus();
|
||||
|
||||
//Reset recipients and attachments
|
||||
awResetAllRows();
|
||||
RemoveAllAttachments();
|
||||
|
@ -221,6 +216,11 @@ var gComposeRecyclingListener = {
|
|||
},
|
||||
|
||||
onReopen: function(params) {
|
||||
//Reset focus to avoid undesirable visual effect when reopening the winodw
|
||||
var identityElement = document.getElementById("msgIdentity");
|
||||
if (identityElement)
|
||||
identityElement.focus();
|
||||
|
||||
InitializeGlobalVariables();
|
||||
window.editorShell.contentWindow.focus();
|
||||
enableEditableFields();
|
||||
|
|
Загрузка…
Ссылка в новой задаче