mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 21:19:21 +03:00
Replace messages jQuery drag/drop with native HTML5
This commit is contained in:
parent
d88c183112
commit
c282e2c9b5
10 changed files with 91 additions and 149 deletions
|
|
@ -1,7 +1,7 @@
|
|||
import ko from 'ko';
|
||||
|
||||
import { Capa, Focused, Layout, KeyState } from 'Common/Enums';
|
||||
import { $htmlCL, leftPanelDisabled, moveAction } from 'Common/Globals';
|
||||
import { leftPanelDisabled, moveAction } from 'Common/Globals';
|
||||
import { mailBox, settings } from 'Common/Links';
|
||||
import { setFolderHash } from 'Common/Cache';
|
||||
|
||||
|
|
@ -218,18 +218,12 @@ class FolderListMailBoxUserView extends AbstractViewNext {
|
|||
|
||||
/**
|
||||
* @param {FolderModel} toFolder
|
||||
* @param {{helper:jQuery}} ui
|
||||
* @param {Array} data
|
||||
* @returns {void}
|
||||
*/
|
||||
messagesDrop(toFolder, ui) {
|
||||
if (toFolder && ui && ui.helper) {
|
||||
const fromFolderFullNameRaw = ui.helper.rlFolder,
|
||||
copy = $htmlCL.contains('rl-ctrl-key-pressed'),
|
||||
uids = ui.helper.rlUids;
|
||||
|
||||
if (fromFolderFullNameRaw && Array.isArray(uids)) {
|
||||
rl.app.moveMessagesToFolder(fromFolderFullNameRaw, uids, toFolder.fullNameRaw, copy);
|
||||
}
|
||||
messagesDrop(toFolder, data) {
|
||||
if (toFolder && data && data.folder && Array.isArray(data.uids)) {
|
||||
rl.app.moveMessagesToFolder(data.folder, data.uids, toFolder.fullNameRaw, data.copy);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue