mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
Only clear clipboard if files are moved, not copied or symlinked
This commit is contained in:
parent
7738de2dec
commit
9496768f82
@ -887,10 +887,13 @@ app.classes.filemanager = AppJS.extend(
|
|||||||
action.execute(clipboard.selected,selected[0]);
|
action.execute(clipboard.selected,selected[0]);
|
||||||
|
|
||||||
// Clear the clipboard, the files are not there anymore
|
// Clear the clipboard, the files are not there anymore
|
||||||
|
if(action.id.indexOf('move') !== -1)
|
||||||
|
{
|
||||||
egw.setSessionItem('phpgwapi', 'egw_clipboard', JSON.stringify({
|
egw.setSessionItem('phpgwapi', 'egw_clipboard', JSON.stringify({
|
||||||
type:[],
|
type:[],
|
||||||
selected:[]
|
selected:[]
|
||||||
}));
|
}));
|
||||||
|
}
|
||||||
};
|
};
|
||||||
for(var i = 0; i < actions.length; i++)
|
for(var i = 0; i < actions.length; i++)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user