fix batch editing

This commit is contained in:
j 2018-11-05 20:30:27 +00:00
parent ce234bdea5
commit 2cd1d85702

View file

@ -215,30 +215,31 @@ pandora.ui.infoView = function(data, isMixed) {
}
// Title -------------------------------------------------------------------
$('<div>')
.css({
marginTop: '-2px',
marginBottom: '12px'
})
.append(
Ox.EditableContent({
editable: canEdit,
placeholder: formatLight(Ox._('No Title')),
tooltip: canEdit ? pandora.getEditTooltip() : '',
value: data.title
})
.css({
fontWeight: 'bold',
fontSize: '13px'
})
.bindEvent({
submit: function(event) {
editMetadata('title', event.value);
}
})
)
.appendTo($text);
if (!isMultiple) {
$('<div>')
.css({
marginTop: '-2px',
marginBottom: '12px'
})
.append(
Ox.EditableContent({
editable: canEdit,
placeholder: formatLight(Ox._('No Title')),
tooltip: canEdit ? pandora.getEditTooltip() : '',
value: data.title
})
.css({
fontWeight: 'bold',
fontSize: '13px'
})
.bindEvent({
submit: function(event) {
editMetadata('title', event.value);
}
})
)
.appendTo($text);
}
// Groups ------------------------------------------------------------------