forked from 0x2620/pandora
expand language codes to language names after adding/editing annotation
This commit is contained in:
parent
1556699723
commit
d5450840ad
1 changed files with 5 additions and 0 deletions
|
@ -141,6 +141,11 @@ pandora.ui.editor = function(data) {
|
|||
result.data.date = Ox.formatDate(
|
||||
result.data.modified.slice(0, 10), '%B %e, %Y'
|
||||
);
|
||||
result.data.languages = (
|
||||
result.data.languages || [pandora.site.language]
|
||||
).map(function(language) {
|
||||
return Ox.getLanguageNameByCode(language);
|
||||
});
|
||||
that.updateAnnotation(data.id, result.data);
|
||||
Ox.Request.clearCache();
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue