зеркало из https://github.com/mozilla/pjs.git
Fixed bug 15442 - use about:blank for empty doc URL for editor. r=law
This commit is contained in:
Родитель
e5d67abd7b
Коммит
fe99e05866
|
@ -184,7 +184,7 @@ function NewEditorWindow()
|
|||
dump("In NewEditorWindow()...\n");
|
||||
// Open editor window with blank page
|
||||
// Kludge to leverage openDialog non-modal!
|
||||
window.openDialog( "chrome://editor/content", "_blank", "chrome,all,dialog=no", "resource:/res/html/empty_doc.html");
|
||||
window.openDialog( "chrome://editor/content", "_blank", "chrome,all,dialog=no", "about:blank");
|
||||
}
|
||||
|
||||
function NewEditorFromTemplate()
|
||||
|
|
|
@ -174,18 +174,15 @@ function toEditor()
|
|||
{
|
||||
//TODO: Find and existing editor window using CycleWindow()
|
||||
// For now, this opens a new blank window
|
||||
window.openDialog( "chrome://editor/content/EditorAppShell.xul",
|
||||
"_blank",
|
||||
"chrome,dialog=no,all",
|
||||
"resource:/res/html/empty_doc.html" );
|
||||
toNewTextEditorWindow();
|
||||
}
|
||||
|
||||
function toNewTextEditorWindow()
|
||||
{
|
||||
window.openDialog( "chrome://editor/content/TextEditorAppShell.xul",
|
||||
"_blank",
|
||||
"chrome,dialog=no,all",
|
||||
"resource:/res/html/empty_doc.html");
|
||||
window.openDialog( "chrome://editor/content/TextEditorAppShell.xul",
|
||||
"_blank",
|
||||
"chrome,dialog=no,all",
|
||||
"about:blank");
|
||||
}
|
||||
|
||||
function ShowWindowFromResource( node )
|
||||
|
|
Загрузка…
Ссылка в новой задаче