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

This commit is contained in:
Dan Stillman 2017-02-21 18:17:05 -05:00
parent 3c5912f68d
commit 1ff1fabb31
2 changed files with 2 additions and 2 deletions

View file

@ -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';
}

View file

@ -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;