www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 4248e59eeb9babdada278d9d8e2e551c12fa7aba
parent 7da17ab63e59e54ae415e45976e65fadb60688b5
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri, 13 Apr 2018 16:11:32 -0400

Add log line when trying to drag already-linked collection

Diffstat:
Mchrome/content/zotero/xpcom/collectionTreeView.js | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/chrome/content/zotero/xpcom/collectionTreeView.js b/chrome/content/zotero/xpcom/collectionTreeView.js @@ -1829,6 +1829,7 @@ Zotero.CollectionTreeView.prototype.canDropCheckAsync = Zotero.Promise.coroutine if (treeRow.ref.libraryID != draggedCollection.libraryID) { // Disallow if linked collection already exists if (yield draggedCollection.getLinkedCollection(treeRow.ref.libraryID, true)) { + Zotero.debug("Linked collection already exists in library"); return false; } @@ -1840,6 +1841,7 @@ Zotero.CollectionTreeView.prototype.canDropCheckAsync = Zotero.Promise.coroutine // If this is allowed in the future for the root collection, // need to allow drag only to root if (yield descendent.getLinkedCollection(treeRow.ref.libraryID, true)) { + Zotero.debug("Linked subcollection already exists in library"); return false; } }