From 7798ea0cd7dd9bb2e1c8ac5420c518642da4ebc4 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Thu, 18 Dec 2014 21:33:08 +0100 Subject: show spinner on file upload in IE8, 9 --- apps/files/js/file-upload.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'apps') diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js index 9fe623075bc..9ea8603c74a 100644 --- a/apps/files/js/file-upload.js +++ b/apps/files/js/file-upload.js @@ -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(); + }); } } -- cgit v1.2.3