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:
parent
d15f1d8e90
commit
ae3372d7df
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user