From 9081c8555133e49c552ce8ca78bd61ebc7aee7de Mon Sep 17 00:00:00 2001 From: "ben%netscape.com" Date: Mon, 17 Dec 2001 22:51:00 +0000 Subject: [PATCH] 109856 - 2 separators in image context menu. Make editor js use same context menu function for determining whether or not to show a separator as everyone else. sr=hyatt/blake git-svn-id: svn://10.0.0.236/trunk@110647 18797224-902f-48f8-a5cc-f745e15eee43 --- .../editor/ui/composer/content/editorApplicationOverlay.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/mozilla/editor/ui/composer/content/editorApplicationOverlay.js b/mozilla/editor/ui/composer/content/editorApplicationOverlay.js index 930ea5fba4e..ab13c1a5621 100644 --- a/mozilla/editor/ui/composer/content/editorApplicationOverlay.js +++ b/mozilla/editor/ui/composer/content/editorApplicationOverlay.js @@ -66,12 +66,7 @@ function initEditorContextMenuItems(aEvent) gContextMenu.showItem( "context-editlink", shouldShowEditLink ); // Hide the applications separator if there's no add-on apps present. - var appsSeparator = document.getElementById("context-sep-apps"); - if (appsSeparator) { - var tempElement = appsSeparator.previousSibling; - if (tempElement.localName == "menuseparator") - gContextMenu.showItem("context-sep-apps", false); - } + gContextMenu.showItem("context-sep-apps", gContextMenu.shouldShowSeparator("context-sep-apps")); } function initEditorContextMenuListener(aEvent)