Bug 230396: in the BT, new folders can only be created in menupopups with the context menu, clarifying comments.

initial patch by Gregor Larson <comm001@glarson.org>
This commit is contained in:
chanial%noos.fr 2004-01-10 04:55:12 +00:00
Родитель 120da6a130
Коммит d54521401d
1 изменённых файлов: 6 добавлений и 4 удалений

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

@ -412,10 +412,12 @@ var BookmarksMenuController = {
if (content)
content.focus();
BookmarksMenuDNDObserver.onDragRemoveFeedBack(document.popupNode);
# when a dialog opens, the popup chain is not correctly dismissed,
# the child of the a menu won''t be closed.
if (document.popupNode.firstChild)
document.popupNode.firstChild.hidePopup();
# if a dialog opens, the "open" attribute of a menuitem-container
# rclicked on won''t be removed. We do it manually.
var element = document.popupNode.firstChild;
if (element && element.localName == "menupopup")
element.hidePopup();
var selection = BookmarksMenu._selection;
var target = BookmarksMenu._target;