aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-12-18 21:33:08 +0100
committerMorris Jobke <hey@morrisjobke.de>2014-12-18 22:24:07 +0100
commit7798ea0cd7dd9bb2e1c8ac5420c518642da4ebc4 (patch)
treec55c1ac19fa7d5303bae15afbb830de0867f396f /apps
parent1ef01de40288518ada48ba29374f29e5d1a97f8e (diff)
downloadnextcloud-server-7798ea0cd7dd9bb2e1c8ac5420c518642da4ebc4.tar.gz
nextcloud-server-7798ea0cd7dd9bb2e1c8ac5420c518642da4ebc4.zip
show spinner on file upload in IE8, 9
Diffstat (limited to 'apps')
-rw-r--r--apps/files/js/file-upload.js15
1 files changed, 15 insertions, 0 deletions
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();
+ });
}
}