Filemanager - Fix save as only downloaded the last file

This commit is contained in:
nathangray 2018-04-24 11:26:16 -06:00
parent 8973a62ccc
commit 8873a23fd6

View File

@ -659,7 +659,7 @@ app.classes.filemanager = AppJS.extend(
window.setTimeout(jQuery.proxy(function() { window.setTimeout(jQuery.proxy(function() {
var evt = document.createEvent('MouseEvent'); var evt = document.createEvent('MouseEvent');
evt.initMouseEvent('click', true, true, window, 1, 0, 0, 0, 0, false, false, false, false, 0, null); evt.initMouseEvent('click', true, true, window, 1, 0, 0, 0, 0, false, false, false, false, 0, null);
a[0].dispatchEvent(evt); this[0].dispatchEvent(evt);
this.remove(); this.remove();
}, a), 100*i); }, a), 100*i);
} }