dont fail on undefined values

This commit is contained in:
j 2013-04-18 15:59:30 +00:00
parent 28ba382f11
commit c7525de61a
1 changed files with 2 additions and 2 deletions

View File

@ -147,7 +147,7 @@ pandora.ui.infoView = function(data) {
Ox.Editable({
editable: canEdit,
tooltip: canEdit ? pandora.getEditTooltip() : '',
value: data.title
value: data.title || ''
})
.css({
display: 'inline-block',
@ -387,7 +387,7 @@ pandora.ui.infoView = function(data) {
placeholder: formatLight('No notes'),
tooltip: pandora.getEditTooltip(),
type: 'textarea',
value: data.notes,
value: data.notes || '',
width: 128
})
.bindEvent({