зеркало из https://github.com/mozilla/pjs.git
fix 129305 r=cavin, sr=sspitzer a=asa fix open folder in new window command
This commit is contained in:
Родитель
3f378f1d5f
Коммит
fe8f38470f
|
@ -922,10 +922,13 @@ function MsgOpenNewWindowForFolder(uri, key)
|
|||
if (uriToOpen) {
|
||||
var layoutType = gPrefs.getIntPref("mail.pane_config");
|
||||
|
||||
var paramBlock = Components.classes["@mozilla.org/embedcomp/dialogparam;1"].createInstance(Components.interfaces.nsIDialogParamBlock);
|
||||
paramBlock.SetString(0, uriToOpen);
|
||||
paramBlock.SetInt(0, keyToSelect);
|
||||
if(layoutType == 0)
|
||||
window.openDialog("chrome://messenger/content/messenger.xul", "_blank", "all,chrome,dialog=no,status,toolbar", {uri: uriToOpen, key: keyToSelect});
|
||||
window.openDialog("chrome://messenger/content/messenger.xul", "_blank", "all,chrome,dialog=no,status,toolbar", paramBlock);
|
||||
else
|
||||
window.openDialog("chrome://messenger/content/mail3PaneWindowVertLayout.xul", "_blank", "all,chrome,dialog=no,status,toolbar", {uri: uriToOpen, key: keyToSelect});
|
||||
window.openDialog("chrome://messenger/content/mail3PaneWindowVertLayout.xul", "_blank", "all,chrome,dialog=no,status,toolbar", paramBlock);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче