From e56a41036018c7a3cd43dc2d173c2bc43d7327c7 Mon Sep 17 00:00:00 2001 From: "cmanske%netscape.com" Date: Mon, 10 Sep 2001 21:50:12 +0000 Subject: [PATCH] Check if HTML Source has been edited when loading into existing Composer window, b=98768, r=syd, sr=kin --- editor/ui/composer/content/editor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/ui/composer/content/editor.js b/editor/ui/composer/content/editor.js index 92836d98426..27eef6e382f 100644 --- a/editor/ui/composer/content/editor.js +++ b/editor/ui/composer/content/editor.js @@ -117,7 +117,8 @@ function TextEditorOnLoad() function PageIsEmptyAndUntouched() { - return (editorShell != null) && (editorShell.documentIsEmpty == true) && (docWasModified == false); + return (editorShell != null) && editorShell.documentIsEmpty && + !docWasModified && !gHTMLSourceChanged; } function IsEditorContentHTML() @@ -1681,7 +1682,6 @@ function InitListMenu() var mixedObj = new Object(); var state = editorShell.GetListState(mixedObj); var IDSuffix = "noList"; - if (state) { if (state == "dl")