diff --git a/lib/form/filemanager.js b/lib/form/filemanager.js index 530ad2ef8387d..132cbf74fabf6 100644 --- a/lib/form/filemanager.js +++ b/lib/form/filemanager.js @@ -339,10 +339,13 @@ M.form_filemanager.init = function(Y, options) { callback: function(id, obj, args) { if (obj) { scope.refresh(obj.filepath); - var win = window.open(obj.fileurl, 'fm-download-folder'); - if (!win) { - scope.print_msg(M.str.repository.popupblockeddownload, 'error'); - } + node = Y.Node.create('').setStyles({ + visibility : 'hidden', + width : '1px', + height : '1px' + }); + node.set('src', obj.fileurl); + Y.one('body').appendChild(node); } else { scope.print_msg(M.str.repository.draftareanofiles, 'error'); }