зеркало из https://github.com/mozilla/pjs.git
Bug 431535: Static item's context menu in bookmark menu is messed up, Marco Bonardo <mak77@supereva.it>, r=mano, a=mconnor
This commit is contained in:
Родитель
346af059d4
Коммит
6926416e33
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче