Ox.Select gets value not checked items

This commit is contained in:
j 2012-01-21 02:26:49 +05:30
parent 91490c71f0
commit 878a53fa16

View file

@ -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({