diff options
author | noveens <noveen.sachdeva@research.iiit.ac.in> | 2017-02-15 01:56:00 +0530 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-03-23 13:12:29 -0600 |
commit | 40228c0c2b17c800fa5e227b4d2e8d074da82075 (patch) | |
tree | 74f7e43380384b88bc29be08135c0e1252600597 /apps/files/js/file-upload.js | |
parent | 39ac804899197069b40384afdc40966e22658eca (diff) | |
download | nextcloud-server-40228c0c2b17c800fa5e227b4d2e8d074da82075.tar.gz nextcloud-server-40228c0c2b17c800fa5e227b4d2e8d074da82075.zip |
added quit option in commentstabview.js
added quit option in notif in app.js
added quit option in notif in file-upload.js
added quit option in notif in fileinfomodel.js
added quit option in notif in filelist.js
added quit option in notif in filelist.js
added quit option in notif in tagsplugin.js
added quit option in notif in statusmanager.js
added quit option in notif in external.js
added quit option in notif in versionstabview.js
added quit option in notif in notification.js
changes according to the latest review.
timeout removed since there is a button to close it
translation capability added
typo fixed
test files updated
small errors fixed
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/files/js/file-upload.js')
-rw-r--r-- | apps/files/js/file-upload.js | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js index 2b28380e0b0..ad4d03a1bdb 100644 --- a/apps/files/js/file-upload.js +++ b/apps/files/js/file-upload.js @@ -462,7 +462,7 @@ OC.Uploader.prototype = _.extend({ deferred.resolve(); return; } - OC.Notification.showTemporary(t('files', 'Could not create folder "{dir}"', {dir: fullPath})); + OC.Notification.show(t('files', 'Could not create folder "{dir}"', {dir: fullPath}), {type: 'error'}); deferred.reject(); }); }, function() { @@ -544,7 +544,7 @@ OC.Uploader.prototype = _.extend({ }, showUploadCancelMessage: _.debounce(function() { - OC.Notification.showTemporary(t('files', 'Upload cancelled.'), {timeout: 10}); + OC.Notification.show(t('files', 'Upload cancelled.'), {timeout : 7, type: 'error'}); }, 500), /** * callback for the conflicts dialog @@ -907,19 +907,15 @@ OC.Uploader.prototype = _.extend({ self.showConflict(upload); } else if (status === 404) { // target folder does not exist any more - OC.Notification.showTemporary( - t('files', 'Target folder "{dir}" does not exist any more', {dir: upload.getFullPath()}) - ); + OC.Notification.show(t('files', 'Target folder "{dir}" does not exist any more', {dir: upload.getFullPath()} ), {type: 'error'}); self.cancelUploads(); } else if (status === 507) { // not enough space - OC.Notification.showTemporary( - t('files', 'Not enough free space') - ); + OC.Notification.show(t('files', 'Not enough free space'), {type: 'error'}); self.cancelUploads(); } else { // HTTP connection problem or other error - OC.Notification.showTemporary(data.errorThrown, {timeout: 10}); + OC.Notification.show(data.errorThrown, {type: 'error'}); } if (upload) { @@ -1113,5 +1109,3 @@ OC.Uploader.prototype = _.extend({ return this.fileUploadParam; } }, OC.Backbone.Events); - - |