From c2e7c19c49e457e6e34a6e84024176c42ce4c69a Mon Sep 17 00:00:00 2001 From: Jörn Friedrich Dreyer Date: Wed, 27 Aug 2014 10:44:10 +0200 Subject: 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 7c65e33c6d7..e8b578133b3 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; } -- cgit v1.2.3