edit classification, fixes #10
This commit is contained in:
parent
051b634008
commit
5b612b7844
1 changed files with 14 additions and 3 deletions
|
@ -587,13 +587,24 @@ oml.ui.infoView = function(identifyData) {
|
|||
|
||||
// -------- Classification
|
||||
|
||||
if (data.classification) {
|
||||
if (data.classification || isEditable) {
|
||||
$('<div>')
|
||||
.css({
|
||||
marginTop: '8px',
|
||||
})
|
||||
.html(
|
||||
formatValue(data.classification, 'classification')
|
||||
.append(
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue