forked from 0x2620/pandora
misc bugfixes
This commit is contained in:
parent
8528b05368
commit
416307f4ef
1 changed files with 4 additions and 3 deletions
|
@ -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')})
|
||||
|
|
Loading…
Reference in a new issue