Force 'move' action for collection drag

This commit is contained in:
Dan Stillman 2013-09-06 15:52:59 -04:00
parent d318bca7a4
commit 48a94c6716

View file

@ -83,7 +83,10 @@ Zotero.LibraryTreeView.prototype = {
return;
}
if (event.dataTransfer.getData("zotero/item")) {
if (event.dataTransfer.getData("zotero/collection")) {
this._setDropEffect(event, "move");
}
else if (event.dataTransfer.getData("zotero/item")) {
var sourceItemGroup = Zotero.DragDrop.getDragSource();
if (sourceItemGroup) {
if (this.type == 'collection') {