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 ------------------------------------------------------------------- // Title -------------------------------------------------------------------
if (!isMultiple) {
$('<div>') $('<div>')
.css({ .css({
marginTop: '-2px', marginTop: '-2px',
marginBottom: '12px' marginBottom: '12px'
}) })
.append( .append(
Ox.EditableContent({ Ox.EditableContent({
editable: canEdit, editable: canEdit,
placeholder: formatLight(Ox._('No Title')), placeholder: formatLight(Ox._('No Title')),
tooltip: canEdit ? pandora.getEditTooltip() : '', tooltip: canEdit ? pandora.getEditTooltip() : '',
value: data.title value: data.title
}) })
.css({ .css({
fontWeight: 'bold', fontWeight: 'bold',
fontSize: '13px' fontSize: '13px'
}) })
.bindEvent({ .bindEvent({
submit: function(event) { submit: function(event) {
editMetadata('title', event.value); editMetadata('title', event.value);
} }
}) })
) )
.appendTo($text); .appendTo($text);
}
// Groups ------------------------------------------------------------------ // Groups ------------------------------------------------------------------