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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user