define sections in one location
This commit is contained in:
parent
2093922208
commit
5168ed4a33
4 changed files with 11 additions and 16 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue