зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
cf8eb4f045
Коммит
6fde047fdc
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче