check if ID was assigned

This commit is contained in:
Björn Schießle 2012-10-08 17:47:02 +02:00
parent 277dd2b0a9
commit 32e2d7ef8f

View 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+')');
});