aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/filelist.js
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/js/filelist.js')
-rw-r--r--apps/files/js/filelist.js5
1 files changed, 2 insertions, 3 deletions
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+'<span class="undo">'+t('files', 'undo')+'</span>');
$('#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;