decode more html entities
This commit is contained in:
parent
bdcd935c3e
commit
2f007f19af
1 changed files with 5 additions and 2 deletions
|
@ -640,7 +640,10 @@ oml.ui.infoView = function(identifyData) {
|
||||||
})
|
})
|
||||||
.bindEvent({
|
.bindEvent({
|
||||||
submit: function(event) {
|
submit: function(event) {
|
||||||
editMetadata('description', event.value);
|
editMetadata(
|
||||||
|
'description',
|
||||||
|
event.value.replace(/<br>/g, '\n')
|
||||||
|
);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
).appendTo($info);
|
).appendTo($info);
|
||||||
|
@ -728,7 +731,7 @@ oml.ui.infoView = function(identifyData) {
|
||||||
if (Ox.contains(arrayKeys, key)) {
|
if (Ox.contains(arrayKeys, key)) {
|
||||||
edit[key] = value ? splitValue(value) : [];
|
edit[key] = value ? splitValue(value) : [];
|
||||||
} else {
|
} else {
|
||||||
edit[key] = value;
|
edit[key] = Ox.decodeHTMLEntities(value);
|
||||||
}
|
}
|
||||||
oml.api.edit(edit, function(result) {
|
oml.api.edit(edit, function(result) {
|
||||||
Ox.Request.clearCache();
|
Ox.Request.clearCache();
|
||||||
|
|
Loading…
Reference in a new issue