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
|
// -------- 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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue