From 1ff1fabb315ffb6f12e77df5e689434161792911 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 21 Feb 2017 18:17:05 -0500 Subject: [PATCH] Fix dragging attachment onto item on Linux (since 1a49018bd) --- chrome/content/zotero/xpcom/itemTreeView.js | 2 +- chrome/content/zotero/xpcom/libraryTreeView.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/itemTreeView.js b/chrome/content/zotero/xpcom/itemTreeView.js index b6ee22aec..bf40e914f 100644 --- a/chrome/content/zotero/xpcom/itemTreeView.js +++ b/chrome/content/zotero/xpcom/itemTreeView.js @@ -2512,7 +2512,7 @@ Zotero.ItemTreeCommandController.prototype.onEvent = function(evt) */ Zotero.ItemTreeView.prototype.onDragStart = function (event) { // See note in LibraryTreeView::_setDropEffect() - if (Zotero.isWin) { + if (Zotero.isWin || Zotero.isLinux) { event.dataTransfer.effectAllowed = 'copyMove'; } diff --git a/chrome/content/zotero/xpcom/libraryTreeView.js b/chrome/content/zotero/xpcom/libraryTreeView.js index de4ce9485..065e93aad 100644 --- a/chrome/content/zotero/xpcom/libraryTreeView.js +++ b/chrome/content/zotero/xpcom/libraryTreeView.js @@ -439,7 +439,7 @@ Zotero.LibraryTreeView.prototype = { // the same action as the dropEffect. This allows the dropEffect setting // (which we use in the tree's canDrop() and drop() to determine the desired // action) to be changed, even if the cursor doesn't reflect the new setting. - if (Zotero.isWin) { + if (Zotero.isWin || Zotero.isLinux) { event.dataTransfer.effectAllowed = effect; } event.dataTransfer.dropEffect = effect;