From 1d83d76b457666bad4637bbae87fceead853d87a Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Mon, 25 Feb 2013 17:50:17 +0100 Subject: [PATCH] fixed bug that prevented a newly created file to be opened with registered files actions --- apps/files/js/files.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files/js/files.js b/apps/files/js/files.js index 6b9b23657dc..464f7703685 100644 --- a/apps/files/js/files.js +++ b/apps/files/js/files.js @@ -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+')'); -- 2.39.5