define sections in one location

This commit is contained in:
j 2019-12-09 13:12:44 +00:00
commit 5168ed4a33
4 changed files with 11 additions and 16 deletions

View file

@ -4,11 +4,7 @@ pandora.ui.sectionSelect = function(section) {
// fixme: duplicated
var that = Ox.Select({
id: 'sectionSelect',
items: [
{id: 'items', title: Ox._(pandora.site.itemName.plural)},
{id: 'edits', title: Ox._('Edits')},
{id: 'documents', title: Ox._('Documents')}
],
items: pandora.site.sections,
value: section || pandora.user.ui.section
}).css({
float: 'left',