don't display 'undefined'

This commit is contained in:
rlx 2016-01-13 16:55:13 +05:30
parent e6e52d53d5
commit f5b939a1b2
2 changed files with 2 additions and 2 deletions

View file

@ -47,7 +47,7 @@ oml.ui.browser = function() {
height: height,
id: data.id,
info: Ox.encodeHTMLEntities(info),
title: Ox.encodeHTMLEntities(data.title),
title: Ox.encodeHTMLEntities(data.title || ''),
url: '/' + data.id + '/' + ui.icons + '128.jpg?' + data.modified,
width: width
};

View file

@ -49,7 +49,7 @@ oml.ui.gridView = function() {
height: height,
id: data.id,
info: Ox.encodeHTMLEntities(info),
title: Ox.encodeHTMLEntities(data.title),
title: Ox.encodeHTMLEntities(data.title || ''),
url: '/' + data.id + '/' + ui.icons + '128.jpg?' + data.modified,
width: width
};