MDL-68890 progressbar: prevent display exist file's progress bar

This commit is contained in:
hiendinh 2020-06-02 14:07:03 +07:00
parent a2b286ce17
commit de6b084925

View File

@ -445,12 +445,12 @@ M.form_dndupload.init = function(Y, options) {
if (dispfilename.length > 50) {
dispfilename = dispfilename.substr(0, 49)+'…';
}
var progressouter = this.container.create(dispfilename +
var progressouter = this.container.create('<div>' + dispfilename +
'<div class="progress">' +
' <div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100">' +
' <span class="sr-only"></span>' +
' </div>' +
'</div>');
'</div></div>');
var progressinner = progressouter.one('.progress-bar');
var progressinnertext = progressinner.one('.sr-only');
var progresscontainer = this.container.one('.dndupload-progressbars');