[Pkg-owncloud-commits] [owncloud] 10/50: use notification to shw error on new via web

David Prévot taffit at moszumanska.debian.org
Fri Oct 17 03:12:11 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v6.0.6RC1
in repository owncloud.

commit c2e7c19c49e457e6e34a6e84024176c42ce4c69a
Author: Jörn Friedrich Dreyer <jfd at butonic.de>
Date:   Wed Aug 27 10:44:10 2014 +0200

    use notification to shw error on new via web
---
 apps/files/js/file-upload.js | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js
index 7c65e33..e8b5781 100644
--- a/apps/files/js/file-upload.js
+++ b/apps/files/js/file-upload.js
@@ -668,7 +668,11 @@ $(document).ready(function() {
 						});
 						eventSource.listen('error',function(error) {
 							$('#uploadprogressbar').fadeOut();
-							alert(error);
+							OC.Notification.show(error);
+							// hide notification after 10 sec
+							setTimeout(function() {
+								OC.Notification.hide();
+							}, 10000);
 						});
 						break;
 				}

-- 
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