From c85ea98dd6aae562b880de49e0e38ab157b2fe47 Mon Sep 17 00:00:00 2001 From: Steffen Buehl Date: Fri, 20 May 2016 11:23:39 +0200 Subject: [PATCH] add basic internet explorer compatibility for download button (see http://stackoverflow.com/questions/20310688/blob-download-not-working-in-ie) --- client/js/download.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/js/download.js b/client/js/download.js index d8936e61..6a09664a 100644 --- a/client/js/download.js +++ b/client/js/download.js @@ -184,6 +184,12 @@ upload.modules.addmodule({ this._.dlbtn.prop('href', url) this._.dlbtn.prop('download', data.header.name) + if (navigator.appVersion.toString().indexOf('.NET') > 0) { + this._.dlbtn[0].addEventListener('click', function() { + window.navigator.msSaveBlob(decrypted, data.header.name) + }, false); + } + delete this._['content'] this._.detailsarea.empty()