From ae752a9decd7798f9f2d64507c0554bb4063009f Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 25 Feb 2013 18:13:36 +0000 Subject: [PATCH] get key type for each key --- static/js/pandora/metadataDialog.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/pandora/metadataDialog.js b/static/js/pandora/metadataDialog.js index e07762af1..bc557d64d 100644 --- a/static/js/pandora/metadataDialog.js +++ b/static/js/pandora/metadataDialog.js @@ -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; -}; \ No newline at end of file +};