dont fail if license is undefined

This commit is contained in:
rolux 2012-01-21 01:53:26 +05:30
parent 07d99ee056
commit 91490c71f0

View file

@ -390,7 +390,7 @@ pandora.ui.infoView = function(data) {
Ox.Editable({ Ox.Editable({
placeholder: formatLight('No License'), placeholder: formatLight('No License'),
tooltip: 'Doubleclick to edit', tooltip: 'Doubleclick to edit',
value: data.license.join(', '), value: (data.license || []).join(', ')
}) })
.bindEvent({ .bindEvent({
submit: function(event) { submit: function(event) {
@ -401,7 +401,7 @@ pandora.ui.infoView = function(data) {
} else if(data.license) { } else if(data.license) {
$div.html( $div.html(
formatKey('License') formatKey('License')
+ data.license.join(', ') + (data.license || []).join(', ')
); );
} }