forked from 0x2620/pandora
edits: remove rights level
This commit is contained in:
parent
cd8e562fc7
commit
05a0be5c99
1 changed files with 26 additions and 26 deletions
|
@ -198,34 +198,34 @@ pandora.ui.listGeneralPanel = function(listData) {
|
||||||
submit: editName
|
submit: editName
|
||||||
})
|
})
|
||||||
.appendTo(that),
|
.appendTo(that),
|
||||||
$itemsInput = ui.section == 'items'
|
$itemsInput = ui.section != 'texts'
|
||||||
? Ox.Input({
|
? Ox.Input({
|
||||||
disabled: true,
|
disabled: true,
|
||||||
label: Ox._('Items'),
|
label: Ox._('Items'),
|
||||||
labelWidth: 80,
|
labelWidth: 80,
|
||||||
value: listData.items,
|
value: listData.items,
|
||||||
width: 320
|
width: 320
|
||||||
})
|
})
|
||||||
.css({position: 'absolute', left: '160px', top: '40px'})
|
.css({position: 'absolute', left: '160px', top: '40px'})
|
||||||
.appendTo(that)
|
.appendTo(that)
|
||||||
: Ox.Select({
|
: Ox.Select({
|
||||||
items: pandora.site.textRightsLevels.map(function(rightsLevel, i) {
|
items: pandora.site.textRightsLevels.map(function(rightsLevel, i) {
|
||||||
console.log(listData);
|
console.log(listData);
|
||||||
return {
|
return {
|
||||||
id: i,
|
id: i,
|
||||||
title: rightsLevel.name,
|
title: rightsLevel.name,
|
||||||
};
|
};
|
||||||
}),
|
}),
|
||||||
label: Ox._('Rights Level'),
|
label: Ox._('Rights Level'),
|
||||||
labelWidth: 80,
|
labelWidth: 80,
|
||||||
value: listData.rightslevel,
|
value: listData.rightslevel,
|
||||||
width: 320
|
width: 320
|
||||||
})
|
})
|
||||||
.css({position: 'absolute', left: '160px', top: '40px'})
|
.css({position: 'absolute', left: '160px', top: '40px'})
|
||||||
.bindEvent({
|
.bindEvent({
|
||||||
change: editRightsLevel
|
change: editRightsLevel
|
||||||
})
|
})
|
||||||
.appendTo(that),
|
.appendTo(that),
|
||||||
$statusSelect = listData.status == 'featured'
|
$statusSelect = listData.status == 'featured'
|
||||||
? Ox.Input({
|
? Ox.Input({
|
||||||
disabled: true,
|
disabled: true,
|
||||||
|
|
Loading…
Reference in a new issue