commit 48a94c6716f1b45a244859dd16f39e1381ab1375 parent d318bca7a4c32c36b5d39cba20dad642678aa6a2 Author: Dan Stillman <dstillman@zotero.org> Date: Fri, 6 Sep 2013 15:52:59 -0400 Force 'move' action for collection drag Diffstat:
| M | chrome/content/zotero/xpcom/libraryTreeView.js | | | 5 | ++++- |
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/chrome/content/zotero/xpcom/libraryTreeView.js b/chrome/content/zotero/xpcom/libraryTreeView.js @@ -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') {