diff --git a/static/js/pandora/infoView.js b/static/js/pandora/infoView.js index 3a6e0df9..83fc0673 100644 --- a/static/js/pandora/infoView.js +++ b/static/js/pandora/infoView.js @@ -769,9 +769,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({ @@ -781,7 +782,7 @@ pandora.ui.infoView = function(data) { .data({OxColor: $rightsLevelElement.data('OxColor')}) .bindEvent({ change: function(event) { - var rightsLevel = event.selected[0].id; + var rightsLevel = event.value $rightsLevelElement = getRightsLevelElement(rightsLevel); $rightsLevelSelect .css({background: $rightsLevelElement.css('background')})