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

@ -2,11 +2,7 @@
pandora.ui.sectionButtons = function(section) {
var that = Ox.ButtonGroup({
buttons: [
{id: 'items', title: Ox._(pandora.site.itemName.plural)},
{id: 'edits', title: Ox._('Edits')},
{id: 'documents', title: Ox._('Documents')}
],
buttons: pandora.site.sections,
id: 'sectionButtons',
selectable: true,
value: section || pandora.user.ui.section