Bug 346669 - disallow dropping items into a live-bookmark container. r=sspitzer.

This commit is contained in:
mozilla.mano%sent.com 2007-02-12 12:34:35 +00:00
Родитель 3cacf3d3af
Коммит c659e26662
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -822,10 +822,10 @@
var droppingOnSelf =
this._getSourceView() == this._self &&
this._self.view.selection.isSelected(index);
if (droppingOnSelf || node.containerReadOnly)
if (droppingOnSelf || PlacesUtils.nodeIsReadOnly(node))
return false;
}
else if (node.parent && node.parent.containerReadOnly)
else if (node.parent && PlacesUtils.nodeIsReadOnly(node.parent))
return false;
return PlacesControllerDragHelper.canDrop(this._self, orientation);