diff options
author | Vincent Petry <pvince81@owncloud.com> | 2013-11-19 06:13:25 -0800 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2013-11-19 06:13:25 -0800 |
commit | 5f6f78ee0342b6afd5c1a6ad4f1866267067ff00 (patch) | |
tree | d9e08530b8d4885a5ee9ac9af3891ba75e563da6 /apps/files/js | |
parent | b55a66187c4abed63218460b675d555f82ab9142 (diff) | |
parent | 5b6d1d79d06e404ce4a52f75393a98f52769da48 (diff) | |
download | nextcloud-server-5f6f78ee0342b6afd5c1a6ad4f1866267067ff00.tar.gz nextcloud-server-5f6f78ee0342b6afd5c1a6ad4f1866267067ff00.zip |
Merge pull request #5878 from owncloud/extstorage-smb
[SMB] Fix stat and unlink
Diffstat (limited to 'apps/files/js')
-rw-r--r-- | apps/files/js/filelist.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index f20d9429271..5cab0707bda 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -569,8 +569,18 @@ var FileList={ FileList.updateEmptyContent(); Files.updateStorageStatistics(); } else { + if (result.status === 'error' && result.data.message) { + OC.Notification.show(result.data.message); + } + else { + OC.Notification.show(t('files', 'Error deleting file.')); + } + // hide notification after 10 sec + setTimeout(function() { + OC.Notification.hide(); + }, 10000); $.each(files,function(index,file) { - var deleteAction = $('tr[data-file="'+files[i]+'"]').children("td.date").children(".action.delete"); + var deleteAction = $('tr[data-file="' + file + '"] .action.delete'); deleteAction.removeClass('progress-icon').addClass('delete-icon'); }); } |