From 046ef170e59e7b7e7813a8eaa18d07c01b9c57ac Mon Sep 17 00:00:00 2001 From: Marco Dickert Date: Mon, 28 Sep 2020 18:16:40 +0200 Subject: [PATCH] Fix download in context menu Signed-off-by: Marco Dickert --- src/ifm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifm.js b/src/ifm.js index d888676..483a395 100644 --- a/src/ifm.js +++ b/src/ifm.js @@ -377,7 +377,7 @@ function IFM(params) { if( data.selected.length > 0 ) self.showMessage( "At the moment it is not possible to download a set of files." ); else - document.forms["d_"+data.clicked.guid].submit(); + window.location = data.clicked.download.link; }, iconClass: "icon icon-download", isShown: function() { return !!self.config.download; }