зеркало из https://github.com/mozilla/gecko-dev.git
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
This commit is contained in:
Родитель
5a0e4de0e3
Коммит
663f287e0e
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче