dont fail on undefined values

This commit is contained in:
j 2013-04-18 15:59:30 +00:00
parent 28ba382f11
commit c7525de61a

View File

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