get key type for each key

This commit is contained in:
j 2013-02-25 18:13:36 +00:00
parent 8f4bccff65
commit ae752a9dec

View file

@ -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) ? [] : ''
);