From 24df67f6ecb06c18817a2eede94862fed0015765 Mon Sep 17 00:00:00 2001 From: "sspitzer%netscape.com" Date: Sat, 18 May 2002 22:41:48 +0000 Subject: [PATCH] fix for blocker bug #145475. plain text mail compose unusable. regression caused by fix for #144955. thanks to ayn2@cornell.edu for the fix. r/sr=sspitzer --- editor/ui/composer/content/ComposerCommands.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/editor/ui/composer/content/ComposerCommands.js b/editor/ui/composer/content/ComposerCommands.js index e662f18f3bf..b97f218300e 100644 --- a/editor/ui/composer/content/ComposerCommands.js +++ b/editor/ui/composer/content/ComposerCommands.js @@ -1696,8 +1696,8 @@ function SetSaveAndPublishUI(urlstring) command = "cmd_save"; // Hide "Publish". Show "Save" toolbar and menu items - SetElementHidden(publishButton, true); - SetElementHidden(saveButton, false); + if (publishButton) publishButton.setAttribute("hidden", "true"); + if (saveButton) saveButton.removeAttribute("hidden"); } else { @@ -1707,13 +1707,13 @@ function SetSaveAndPublishUI(urlstring) command = "cmd_publish"; // Hide "Save", show "Publish" toolbar and menuitems - SetElementHidden(saveButton, true); - SetElementHidden(publishButton, false); + if (saveButton) saveButton.setAttribute("hidden", "true"); + if (publishButton) publishButton.removeAttribute("hidden"); } // Use this to hide "Save" menuitem if editing remote, Hide "Publish" if editing local -// SetElementHidden(menuItem1, true); -// SetElementHidden(menuItem2, false); +// menuItem1.setAttribute("hidden", "true"); +// menuItem2.removeAttribute("hidden"); var key = document.getElementById("savekb"); if (key && command)