diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-08-27 10:44:10 +0200 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-08-27 10:44:10 +0200 |
commit | c2e7c19c49e457e6e34a6e84024176c42ce4c69a (patch) | |
tree | 495adea0bfa31fc880b7099d4451e0340781f20d | |
parent | 30098c34ad50878f266f6ee125008b9254b61af1 (diff) | |
download | nextcloud-server-c2e7c19c49e457e6e34a6e84024176c42ce4c69a.tar.gz nextcloud-server-c2e7c19c49e457e6e34a6e84024176c42ce4c69a.zip |
use notification to shw error on new via web
-rw-r--r-- | apps/files/js/file-upload.js | 6 |
1 files changed, 5 insertions, 1 deletions
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; } |