]> source.dussan.org Git - nextcloud-server.git/commitdiff
check if ID was assigned
authorBjörn Schießle <schiessle@owncloud.com>
Mon, 8 Oct 2012 15:47:02 +0000 (17:47 +0200)
committerBjörn Schießle <schiessle@owncloud.com>
Mon, 8 Oct 2012 15:47:02 +0000 (17:47 +0200)
apps/files/js/filelist.js

index c68b4a89c404954753cd0da4d7f4cc9f976431dc..de73357907268cb288a1059f240a4e37dd0942f3 100644 (file)
@@ -121,7 +121,9 @@ var FileList={
                tr.data('loading',false);
                mime=tr.data('mime');
                tr.attr('data-mime',mime);
-               tr.attr('data-id', id);
+               if (id != null) {
+                       tr.attr('data-id', id);
+               }
                getMimeIcon(mime,function(path){
                        tr.find('td.filename').attr('style','background-image:url('+path+')');
                });