diff options
author | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2014-12-18 22:27:36 +0100 |
---|---|---|
committer | Jan-Christoph Borchardt <hey@jancborchardt.net> | 2014-12-18 22:27:36 +0100 |
commit | 8b467ffa6e5ba3ac1e491072a20cad13e0bb940e (patch) | |
tree | c9049c630f5446698dd61a24404685f80c4b5f86 | |
parent | 609e10238fce3ea4915c146927d2ef790c24f7eb (diff) | |
parent | 7798ea0cd7dd9bb2e1c8ac5420c518642da4ebc4 (diff) | |
download | nextcloud-server-8b467ffa6e5ba3ac1e491072a20cad13e0bb940e.tar.gz nextcloud-server-8b467ffa6e5ba3ac1e491072a20cad13e0bb940e.zip |
Merge pull request #12947 from owncloud/fix-spinner-file-upload-ie89
show spinner on file upload in IE8, 9
-rw-r--r-- | apps/files/js/file-upload.js | 15 |
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(); + }); } } |