get key type for each key
This commit is contained in:
parent
8f4bccff65
commit
ae752a9dec
1 changed files with 3 additions and 3 deletions
|
@ -285,9 +285,9 @@ pandora.ui.metadataDialog = function(data) {
|
|||
}
|
||||
|
||||
function updateMetadata() {
|
||||
var edit = {id: data.id},
|
||||
type = Ox.getObjectById(pandora.site.itemKeys, key).type;
|
||||
var edit = {id: data.id}, type;
|
||||
updateKeys.forEach(function(key) {
|
||||
type = Ox.getObjectById(pandora.site.itemKeys, key).type;
|
||||
edit[key] = imdb[key] || (
|
||||
Ox.isArray(type) ? [] : ''
|
||||
);
|
||||
|
@ -304,4 +304,4 @@ pandora.ui.metadataDialog = function(data) {
|
|||
|
||||
return that;
|
||||
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue