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
This commit is contained in:
ben%netscape.com 2001-12-17 22:51:00 +00:00
parent 4c08f8033d
commit 9081c85551

View File

@ -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)