Bug 431535: Static item's context menu in bookmark menu is messed up, Marco Bonardo <mak77@supereva.it>, r=mano, a=mconnor

git-svn-id: svn://10.0.0.236/trunk@251218 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
gavin%gavinsharp.com
2008-05-05 20:03:37 +00:00
parent f08cfee56e
commit 57ddef4f94
2 changed files with 4 additions and 4 deletions

View File

@@ -911,8 +911,8 @@
var selectedNode = this.selectedNode;
if (selectedNode) {
var popupNode = document.popupNode;
if (popupNode == popupNode.parentNode._emptyMenuItem) {
// If (empty) menuitem is selected the insertion point
if (!popupNode.node) {
// If a static menuitem is selected the insertion point
// is inside the folder, at the end.
folderId = PlacesUtils.getConcreteItemId(selectedNode);
orientation = Ci.nsITreeView.DROP_ON;

View File

@@ -392,8 +392,8 @@
var selectedNode = this.selectedNode;
if (selectedNode) {
var popupNode = document.popupNode;
if (popupNode == popupNode.parentNode._emptyMenuItem) {
// If (empty) menuitem is selected the insertion point
if (!popupNode.node) {
// If a static menuitem is selected the insertion point
// is inside the folder, at the end.
folderId = PlacesUtils.getConcreteItemId(selectedNode);
orientation = Ci.nsITreeView.DROP_ON;