Skip to content
Snippets Groups Projects
Commit 7798ea0c authored by Morris Jobke's avatar Morris Jobke
Browse files

show spinner on file upload in IE8, 9

parent 1ef01de4
Branches
No related tags found
No related merge requests found
......@@ -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();
});
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment