fixed bug that prevented a newly created file to be opened with registered files actions

This commit is contained in:
Bernhard Posselt 2013-02-25 17:50:17 +01:00
parent 946a064fc6
commit 1d83d76b45
1 changed files with 1 additions and 1 deletions

View File

@ -595,7 +595,7 @@ $(document).ready(function() {
var date=new Date();
FileList.addFile(name,0,date,false,hidden);
var tr=$('tr').filterAttr('data-file',name);
tr.data('mime','text/plain').data('id',result.data.id);
tr.attr('data-mime','text/plain');
tr.attr('data-id', result.data.id);
getMimeIcon('text/plain',function(path){
tr.find('td.filename').attr('style','background-image:url('+path+')');