Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2012-10-08 19:47:02 +0400
committerBjörn Schießle <schiessle@owncloud.com>2012-10-08 19:47:02 +0400
commit32e2d7ef8f53d4ff80fc31c977464e9c9b960f06 (patch)
tree2690d98b50e105c6361920727b1a482989e957ea /apps
parent277dd2b0a96dbb777358d965c469a4ab141ebd57 (diff)
check if ID was assigned
Diffstat (limited to 'apps')
-rw-r--r--apps/files/js/filelist.js4
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+')');
});