diff options
author | Björn Schießle <schiessle@owncloud.com> | 2012-10-08 17:47:02 +0200 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2012-10-08 17:47:02 +0200 |
commit | 32e2d7ef8f53d4ff80fc31c977464e9c9b960f06 (patch) | |
tree | 2690d98b50e105c6361920727b1a482989e957ea /apps | |
parent | 277dd2b0a96dbb777358d965c469a4ab141ebd57 (diff) | |
download | nextcloud-server-32e2d7ef8f53d4ff80fc31c977464e9c9b960f06.tar.gz nextcloud-server-32e2d7ef8f53d4ff80fc31c977464e9c9b960f06.zip |
check if ID was assigned
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/js/filelist.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index c68b4a89c40..de733579072 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -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+')'); }); |