From ae3372d7dffc23de8dd67f42d121792f57700afa Mon Sep 17 00:00:00 2001 From: "ftang%netscape.com" Date: Wed, 17 May 2000 00:11:05 +0000 Subject: [PATCH] fix 38322. load the current url if the document have not been modified yet. git-svn-id: svn://10.0.0.236/trunk@70196 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/editor/ui/composer/content/editor.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/mozilla/editor/ui/composer/content/editor.js b/mozilla/editor/ui/composer/content/editor.js index c2d37faa32f..80c291221a0 100644 --- a/mozilla/editor/ui/composer/content/editor.js +++ b/mozilla/editor/ui/composer/content/editor.js @@ -415,8 +415,14 @@ function EditorViewSource() function EditorSetDocumentCharacterSet(aCharset) { - dump(aCharset); - editorShell.SetDocumentCharacterSet(aCharset); + if(window.editorShell && + (! window.editorShell.documentModified) && + editorShell.editorDocument.locatoin != "about:blank") + { + dump(aCharset); + editorShell.SetDocumentCharacterSet(aCharset); + editorShell.LoadUrl(editorShell.editorDocument.location); + } }