From 878a53fa16ff7abf6a2ae6e6d13d18731ab48c6d Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 21 Jan 2012 02:26:49 +0530 Subject: [PATCH] Ox.Select gets value not checked items --- static/js/pandora/infoView.padma.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/static/js/pandora/infoView.padma.js b/static/js/pandora/infoView.padma.js index 8f3cff54..5b9a52c3 100644 --- a/static/js/pandora/infoView.padma.js +++ b/static/js/pandora/infoView.padma.js @@ -638,9 +638,10 @@ pandora.ui.infoView = function(data) { if (canEdit) { $rightsLevelSelect = Ox.Select({ items: pandora.site.rightsLevels.map(function(rightsLevel, i) { - return {id: i, title: rightsLevel.name, checked: i == data.rightslevel}; + return {id: i, title: rightsLevel.name}; }), - width: 128 + width: 128, + value: data.rightslevel }) .addClass('OxColor OxColorGradient') .css({