forked from 0x2620/pandora
dont fail on undefined values
This commit is contained in:
parent
28ba382f11
commit
c7525de61a
1 changed files with 2 additions and 2 deletions
|
@ -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({
|
||||||
|
|
Loading…
Reference in a new issue