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) {
|
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')})
|
||||||
|
|
Loading…
Reference in a new issue