summaryrefslogtreecommitdiffstats
path: root/files/js/files.js
diff options
context:
space:
mode:
Diffstat (limited to 'files/js/files.js')
-rw-r--r--files/js/files.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/files/js/files.js b/files/js/files.js
index 4ff1e931c0b..bbc0bd31c3a 100644
--- a/files/js/files.js
+++ b/files/js/files.js
@@ -310,6 +310,11 @@ $(document).ready(function() {
complete: function(data){boolOperationFinished(data, function(){
var date=new Date();
FileList.addFile(name,0,date);
+ var tr=$('tr').filterAttr('data-file',name);
+ tr.data('mime','text/plain');
+ getMimeIcon('text/plain',function(path){
+ tr.find('td.filename').attr('style','background-image:url('+path+')');
+ });
});}
});
break;