Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/js/file-upload.js')
-rw-r--r--apps/files/js/file-upload.js11
1 files changed, 5 insertions, 6 deletions
diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js
index 553ca036360..bc1244a1e6e 100644
--- a/apps/files/js/file-upload.js
+++ b/apps/files/js/file-upload.js
@@ -303,16 +303,15 @@ $(document).ready(function() {
OC.Upload.log('fail', e, data);
if (typeof data.textStatus !== 'undefined' && data.textStatus !== 'success' ) {
if (data.textStatus === 'abort') {
- $('#notification').text(t('files', 'Upload cancelled.'));
+ OC.Notification.show(t('files', 'Upload cancelled.'));
} else {
// HTTP connection problem
- $('#notification').text(data.errorThrown);
+ OC.Notification.show(data.errorThrown);
}
- $('#notification').fadeIn();
- //hide notification after 5 sec
+ //hide notification after 10 sec
setTimeout(function() {
- $('#notification').fadeOut();
- }, 5000);
+ OC.Notification.hide();
+ }, 10000);
}
OC.Upload.deleteUpload(data);
},