From 9496768f8200700ba16b21828c06b6fa82fc2d78 Mon Sep 17 00:00:00 2001 From: nathangray Date: Mon, 29 Aug 2016 09:41:43 -0600 Subject: [PATCH] Only clear clipboard if files are moved, not copied or symlinked --- filemanager/js/app.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/filemanager/js/app.js b/filemanager/js/app.js index 38d6830926..0caa7ce8a7 100644 --- a/filemanager/js/app.js +++ b/filemanager/js/app.js @@ -887,10 +887,13 @@ app.classes.filemanager = AppJS.extend( action.execute(clipboard.selected,selected[0]); // Clear the clipboard, the files are not there anymore - egw.setSessionItem('phpgwapi', 'egw_clipboard', JSON.stringify({ - type:[], - selected:[] - })); + if(action.id.indexOf('move') !== -1) + { + egw.setSessionItem('phpgwapi', 'egw_clipboard', JSON.stringify({ + type:[], + selected:[] + })); + } }; for(var i = 0; i < actions.length; i++) {