mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 08:55:15 +02:00
Merge branch 'MDL-31499-master-iframe' of git://github.com/FMCorz/moodle
This commit is contained in:
commit
60d3ff94db
@ -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');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user