From 73d726d1b26f011e77761934bcf7f5ce8db86241 Mon Sep 17 00:00:00 2001 From: Michael Gapczynski Date: Fri, 7 Sep 2012 00:01:52 -0400 Subject: Support for unshare from self, with a bunch of temporary fixes to overcome configuration problems with file actions --- apps/files/js/filelist.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'apps/files/js/filelist.js') diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index b777785f4d9..7ebfd4b68bb 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -263,7 +263,12 @@ var FileList={ return; } FileList.prepareDeletion(files); - $('#notification').html(t('files', 'deleted')+' '+files+''+t('files', 'undo')+''); + // NOTE: Temporary fix to change the text to unshared for files in root of Shared folder + if ($('#dir').val() == '/Shared') { + $('#notification').html(t('files', 'unshared')+' '+files+''+t('files', 'undo')+''); + } else { + $('#notification').html(t('files', 'deleted')+' '+files+''+t('files', 'undo')+''); + } $('#notification').fadeIn(); }, finishDelete:function(ready,sync){ -- cgit v1.2.3