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() { function updateMetadata() {
var edit = {id: data.id}, var edit = {id: data.id}, type;
type = Ox.getObjectById(pandora.site.itemKeys, key).type;
updateKeys.forEach(function(key) { updateKeys.forEach(function(key) {
type = Ox.getObjectById(pandora.site.itemKeys, key).type;
edit[key] = imdb[key] || ( edit[key] = imdb[key] || (
Ox.isArray(type) ? [] : '' Ox.isArray(type) ? [] : ''
); );