1
0
mirror of https://github.com/misterunknown/ifm.git synced 2025-08-10 18:14:00 +02:00

Fix download in context menu

Signed-off-by: Marco Dickert <marco@misterunknown.de>
This commit is contained in:
Marco Dickert
2020-09-28 18:16:40 +02:00
parent 72d1e86627
commit 046ef170e5

View File

@@ -377,7 +377,7 @@ function IFM(params) {
if( data.selected.length > 0 ) if( data.selected.length > 0 )
self.showMessage( "At the moment it is not possible to download a set of files." ); self.showMessage( "At the moment it is not possible to download a set of files." );
else else
document.forms["d_"+data.clicked.guid].submit(); window.location = data.clicked.download.link;
}, },
iconClass: "icon icon-download", iconClass: "icon icon-download",
isShown: function() { return !!self.config.download; } isShown: function() { return !!self.config.download; }