зеркало из https://github.com/mozilla/pjs.git
Bug 346669 - disallow dropping items into a live-bookmark container. r=sspitzer.
This commit is contained in:
Родитель
3cacf3d3af
Коммит
c659e26662
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче