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
This commit is contained in:
ftang%netscape.com 2000-05-17 00:11:05 +00:00
parent d15f1d8e90
commit ae3372d7df

View File

@ -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);
}
}