From e18639551d4c2915af706c70f98c67aa04b9c89e Mon Sep 17 00:00:00 2001 From: Michael Gapczynski Date: Sun, 29 Jul 2012 16:00:46 -0400 Subject: Tweak appearance of undo delete notification --- apps/files/js/filelist.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'apps/files/js') diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 3645258f98f..aaf2e681abb 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -183,7 +183,7 @@ FileList={ procesSelection(); FileList.deleteCanceled=false; FileList.deleteFiles=files; - $('#notification').text(t('files','undo deletion')); + $('#notification').html(t('files', 'deleted')+' '+files+''+t('files', 'undo')+''); $('#notification').data('deletefile',true); $('#notification').fadeIn(); }, @@ -214,12 +214,11 @@ FileList={ $(document).ready(function(){ $('#notification').hide(); - $('#notification').click(function(){ + $('#notification .undo').live('click', function(){ if($('#notification').data('deletefile')) { $.each(FileList.deleteFiles,function(index,file){ $('tr').filterAttr('data-file',file).show(); -// alert(file); }); FileList.deleteCanceled=true; FileList.deleteFiles=null; -- cgit v1.2.3