show spinner on file upload in IE8, 9

This commit is contained in:
Morris Jobke 2014-12-18 21:33:08 +01:00
parent 1ef01de402
commit 7798ea0cd7
1 changed files with 15 additions and 0 deletions

View File

@ -501,6 +501,21 @@ OC.Upload = {
}
});
} else {
// for all browsers that don't support the progress bar
// IE 8 & 9
// show a spinner
fileupload.on('fileuploadstart', function() {
$('#upload').addClass('icon-loading');
$('#upload .icon-upload').hide();
});
// hide a spinner
fileupload.on('fileuploadstop fileuploadfail', function() {
$('#upload').removeClass('icon-loading');
$('#upload .icon-upload').show();
});
}
}