From 845c66cf3090f3844703ec6a120acbf95852a256 Mon Sep 17 00:00:00 2001 From: "cmanske%netscape.com" Date: Tue, 21 Aug 2001 13:45:01 +0000 Subject: [PATCH] Fixed Doc title in Revert dialog message bug=96073, r=brade, sr=kin; Composer part of 'noshade' syntax bug 88761, r=kin, sr=sfraser git-svn-id: svn://10.0.0.236/trunk@101501 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/editor/ui/composer/content/ComposerCommands.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mozilla/editor/ui/composer/content/ComposerCommands.js b/mozilla/editor/ui/composer/content/ComposerCommands.js index 0401ec7bf5f..06cad57f392 100644 --- a/mozilla/editor/ui/composer/content/ComposerCommands.js +++ b/mozilla/editor/ui/composer/content/ComposerCommands.js @@ -422,9 +422,9 @@ var nsRevertCommand = var result = {value:0}; // Put the page title in the message string - var title = window.editorShell.editorDocument.title; - if (!title || title.length == 0) - title = window.editorShell.GetTitle("untitled"); + var title = window.editorShell.GetDocumentTitle(); + if (!title) + title = window.editorShell.GetString("untitled"); var msg = window.editorShell.GetString("AbandonChanges").replace(/%title%/,title); @@ -836,7 +836,7 @@ var nsHLineCommand = if (shading) { hLine.removeAttribute("noshade"); } else { - hLine.setAttribute("noshade", ""); + hLine.setAttribute("noshade", "noshade"); } } catch (ex) {