]> source.dussan.org Git - nextcloud-server.git/commitdiff
fixed bug that prevented a newly created file to be opened with registered files...
authorBernhard Posselt <nukeawhale@gmail.com>
Mon, 25 Feb 2013 16:50:17 +0000 (17:50 +0100)
committerBernhard Posselt <nukeawhale@gmail.com>
Mon, 25 Feb 2013 16:50:17 +0000 (17:50 +0100)
apps/files/js/files.js

index 6b9b23657dcf3ed51555b8272435ad2d7d38078e..464f77036857c6ec85982976cf5bfc92a8848f89 100644 (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+')');