Permalink
Browse files

Merge branch 'MDL-31499-master-iframe' of git://github.com/FMCorz/moodle

  • Loading branch information...
2 parents d4401b9 + 98d5bad commit 60d3ff94db722dd026343a1305f21b39acf2e3d3 @nebgor nebgor committed Jun 14, 2012
Showing with 7 additions and 4 deletions.
  1. +7 −4 lib/form/filemanager.js
View
@@ -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('<iframe></iframe>').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');
}

0 comments on commit 60d3ff9

Please sign in to comment.