Bug 519186 - drag & drop in bookmarks menu does not correctly update the view, r=mano

This is a regression from bug 498130.
This commit is contained in:
Marco Bonardo 2009-10-05 12:12:46 +02:00
parent d060c11dd3
commit 3ab79457e6

View File

@ -725,8 +725,7 @@
let popup = parentElt.firstChild;
let index = popup._startMarker + 1 + aIndex;
let before = popup.childNodes[index] || null;
this._self.insertNewItem(aNode, popup, before);
this._self.insertNewItem(aNode, popup, popup.childNodes[index]);
if (popup._emptyMenuItem)
popup._emptyMenuItem.hidden = true;
},
@ -777,8 +776,9 @@
// Move the node.
let popup = nodeElt.parentNode;
let index = popup._startMarker + 1 + aNewIndex;
popup.removeChild(nodeElt);
popup.insertBefore(nodeElt, popup.childNodes[aNewIndex]);
popup.insertBefore(nodeElt, popup.childNodes[index]);
},
nodeTitleChanged: function PMV__nodeTitleChanged(aNode, aNewTitle) {