From 090116caf56b598454f8a0e847b42d69a6e509d7 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Thu, 29 Jun 2017 14:25:59 +0100 Subject: [PATCH] Moving working :) Former-commit-id: bdf9418962bd0a7a97ee620be4e31b2794ae0bd4 [formerly 97d894f08335df5cdc067cb82ae582e16bbd78ad] [formerly 45421f1cce32aed206642da7ade436bcb3aaddcf [formerly efc437c771fc77b93476c86958a9ef02ed8ec6e8]] Former-commit-id: e7fef34c75f43cbe8735236e1c797d93ec9b1024 [formerly 18ab632fa655d35753507a55d5e54f7db1df9166] Former-commit-id: b10dd0d5a334d14052122bf5d4a41ed6f370ea5b --- _assets/_old/js/listing.js | 25 ------------------ _assets/src/components/MovePrompt.vue | 37 ++++++++++++++++++++++++--- 2 files changed, 33 insertions(+), 29 deletions(-) diff --git a/_assets/_old/js/listing.js b/_assets/_old/js/listing.js index b56046d2..60cb0ed6 100644 --- a/_assets/_old/js/listing.js +++ b/_assets/_old/js/listing.js @@ -80,31 +80,6 @@ listing.addDoubleTapEvent = function () { }) } -listing.moveMakeItem = function (url, name) { - let node = document.createElement('li'), - count = 0 - - node.dataset.url = url - node.innerHTML = name - node.setAttribute('aria-selected', false) - - node.addEventListener('dblclick', listing.moveDialogNext) - node.addEventListener('click', listing.selectMoveFolder) - node.addEventListener('touchstart', event => { - count++ - - setTimeout(() => { - count = 0 - }, 300) - - if (count > 1) { - listing.moveDialogNext(event) - } - }) - - return node -} - listing.moveSelected = function (event) { event.preventDefault() diff --git a/_assets/src/components/MovePrompt.vue b/_assets/src/components/MovePrompt.vue index c613262b..60a58369 100644 --- a/_assets/src/components/MovePrompt.vue +++ b/_assets/src/components/MovePrompt.vue @@ -4,7 +4,7 @@

Choose new house for your file(s)/folder(s):

Currently navigating on: {{ current }}.

@@ -18,6 +18,7 @@