more 'open in tabs' menuitem fixing

This commit is contained in:
chanial%noos.fr 2002-10-23 21:41:45 +00:00
Родитель 9733032c2c
Коммит fbcd11b44c
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -2092,7 +2092,10 @@ var personalToolbarDNDObserver = {
// hide the 'open in tab' menuseparator because bookmarks
// can be inserted after it if they are dropped after the last bookmark
// a more comprehensive fix would be in the menupopup template builder
var menuTarget = target.parentNode;
var menuTarget = target.localName == "toolbarbutton" ||
target.localName == "menu" &&
orientation == BookmarksUtils.DROP_ON?
target.lastChild:target.parentNode;
if (menuTarget.hasChildNodes() &&
menuTarget.lastChild.id == "openintabs-menuitem") {
menuTarget.removeChild(menuTarget.lastChild.previousSibling);