From bdf19b222a51596a601378b5c6c71ea6bdaa3309 Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 25 Feb 2013 15:51:29 +0530 Subject: [PATCH] cleanup 0xdb info view --- static/js/pandora/infoView.0xdb.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/static/js/pandora/infoView.0xdb.js b/static/js/pandora/infoView.0xdb.js index adc9f37d..07bf6c50 100644 --- a/static/js/pandora/infoView.0xdb.js +++ b/static/js/pandora/infoView.0xdb.js @@ -610,12 +610,7 @@ pandora.ui.infoView = function(data) { // FIXME: does this update selected? } pandora.updateItemContext(); - // FIXME: value function should accept {k: v, ...} - pandora.$ui.browser.value(result.data.id, 'title', result.data.title); - pandora.$ui.browser.value(result.data.id, 'director', result.data.director); - pandora.$ui.browser.value(result.data.id, 'country', result.data.country); - pandora.$ui.browser.value(result.data.id, 'year', result.data.year); - //pandora.$ui.contentPanel.replaceElement(0, pandora.$ui.browser = pandora.ui.browser()); + pandora.$ui.browser.value(result.data.id, key, result.data[key]); }); } }