misc bugfixes

This commit is contained in:
rolux 2011-12-22 17:37:13 +00:00
parent 8528b05368
commit 416307f4ef

View file

@ -769,9 +769,10 @@ pandora.ui.infoView = function(data) {
if (canEdit) { if (canEdit) {
$rightsLevelSelect = Ox.Select({ $rightsLevelSelect = Ox.Select({
items: pandora.site.rightsLevels.map(function(rightsLevel, i) { 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') .addClass('OxColor OxColorGradient')
.css({ .css({
@ -781,7 +782,7 @@ pandora.ui.infoView = function(data) {
.data({OxColor: $rightsLevelElement.data('OxColor')}) .data({OxColor: $rightsLevelElement.data('OxColor')})
.bindEvent({ .bindEvent({
change: function(event) { change: function(event) {
var rightsLevel = event.selected[0].id; var rightsLevel = event.value
$rightsLevelElement = getRightsLevelElement(rightsLevel); $rightsLevelElement = getRightsLevelElement(rightsLevel);
$rightsLevelSelect $rightsLevelSelect
.css({background: $rightsLevelElement.css('background')}) .css({background: $rightsLevelElement.css('background')})