Additional logging for teleporting collections

https://forums.zotero.org/discussion/comment/328917/#Comment_328917
This commit is contained in:
Dan Stillman 2019-03-30 07:57:22 -04:00
parent 37d94dff07
commit 6a2611c9c6

View file

@ -1591,6 +1591,7 @@ Zotero.CollectionTreeView.prototype.onDragStart = function(event) {
return; return;
} }
event.dataTransfer.setData("zotero/collection", treeRow.ref.id); event.dataTransfer.setData("zotero/collection", treeRow.ref.id);
Zotero.debug("Dragging collection " + treeRow.id);
} }
@ -1599,7 +1600,8 @@ Zotero.CollectionTreeView.prototype.onDragStart = function(event) {
* which is checked in libraryTreeView.canDrop() * which is checked in libraryTreeView.canDrop()
*/ */
Zotero.CollectionTreeView.prototype.canDropCheck = function (row, orient, dataTransfer) { Zotero.CollectionTreeView.prototype.canDropCheck = function (row, orient, dataTransfer) {
//Zotero.debug("Row is " + row + "; orient is " + orient); // TEMP
Zotero.debug("Row is " + row + "; orient is " + orient);
var dragData = Zotero.DragDrop.getDataFromDataTransfer(dataTransfer); var dragData = Zotero.DragDrop.getDataFromDataTransfer(dataTransfer);
if (!dragData) { if (!dragData) {