www

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

commit 1ff1fabb315ffb6f12e77df5e689434161792911
parent 3c5912f68d4f91bf09549e3f95863e422abc03db
Author: Dan Stillman <dstillman@zotero.org>
Date:   Tue, 21 Feb 2017 18:17:05 -0500

Fix dragging attachment onto item on Linux (since 1a49018bd)

Diffstat:
Mchrome/content/zotero/xpcom/itemTreeView.js | 2+-
Mchrome/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 @@ -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 @@ -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;