update edit dialog
This commit is contained in:
parent
a6c8e1d478
commit
1d7ebde097
1 changed files with 5 additions and 7 deletions
|
@ -52,9 +52,7 @@ oml.ui.editDialog = function() {
|
|||
}
|
||||
oml.api.edit(edit, function(result) {
|
||||
Ox.Request.clearCache();
|
||||
if (Ox.contains(['author', 'place', 'description'], key)) {
|
||||
oml.$ui.info.updateElement();
|
||||
}
|
||||
oml.$ui.filters.forEach(function($filter) {
|
||||
$filter.reloadList();
|
||||
});
|
||||
|
@ -103,10 +101,10 @@ oml.ui.editDialog = function() {
|
|||
var data = {},
|
||||
items = result.data.items;
|
||||
keys.forEach(function(key) {
|
||||
var values = items.map(function(item) {
|
||||
var isArray = Ox.contains(arrayKeys, key),
|
||||
values = items.map(function(item) {
|
||||
return item[key];
|
||||
});
|
||||
var isArray = Ox.isArray(values[0])
|
||||
if (isArray) {
|
||||
values = values.map(function(value) {
|
||||
return value.join(separator);
|
||||
|
|
Loading…
Reference in a new issue