[Pkg-owncloud-commits] [owncloud] 30/90: show spinner on file upload in IE8, 9
David Prévot
taffit at moszumanska.debian.org
Fri Feb 6 21:10:45 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 9c38baac9eaaf3a97485562b9e4aedfe7da3aec3
Author: Morris Jobke <hey at morrisjobke.de>
Date: Thu Dec 18 21:33:08 2014 +0100
show spinner on file upload in IE8, 9
---
apps/files/js/file-upload.js | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js
index 460c243..04533b0 100644
--- a/apps/files/js/file-upload.js
+++ b/apps/files/js/file-upload.js
@@ -490,6 +490,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();
+ });
}
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list