edit classification, fixes #10

This commit is contained in:
j 2016-01-03 21:49:24 +05:30
parent 051b634008
commit 5b612b7844

View file

@ -587,13 +587,24 @@ oml.ui.infoView = function(identifyData) {
// -------- Classification // -------- Classification
if (data.classification) { if (data.classification || isEditable) {
$('<div>') $('<div>')
.css({ .css({
marginTop: '8px', marginTop: '8px',
}) })
.html( .append(
formatValue(data.classification, 'classification') Ox.EditableContent({
clickLink: oml.clickLink,
editable: isEditable,
placeholder: formatLight('No Classification'),
tooltip: isEditable ? oml.getEditTooltip() : '',
value: data.classification || '',
})
.bindEvent({
submit: function(event) {
editMetadata('classification', event.value);
}
})
) )
.appendTo($info); .appendTo($info);
} }