diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 70c3332cca..b1e9a88506 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -320,9 +320,9 @@ var FileList={ } for (var i=0; i'; - deleteAction[0].outerHTML = newHTML; + deleteAction.html(newHTML); } // Finish any existing actions if (FileList.lastAction) { @@ -344,7 +344,7 @@ var FileList={ } else { $.each(files,function(index,file) { var deleteAction = $('tr').filterAttr('data-file',file).children("td.date").children(".move2trash"); - deleteAction[0].outerHTML = oldHTML; + deleteAction.html(oldHTML); }); } });