summaryrefslogtreecommitdiffstats
path: root/files/js/files.js
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-11-04 03:11:29 +0100
committerRobin Appelman <icewind1991@gmail.com>2011-11-04 03:11:29 +0100
commit9a049de85fa7858efaee8f8f2649dc99340233d4 (patch)
tree1acafd2fc287893707649aae4c2be486bf3a8c29 /files/js/files.js
parentbf18568e176481f416b28be0e3ee663777031219 (diff)
downloadnextcloud-server-9a049de85fa7858efaee8f8f2649dc99340233d4.tar.gz
nextcloud-server-9a049de85fa7858efaee8f8f2649dc99340233d4.zip
fix mimeicon for new files
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;