add volumes folder

This commit is contained in:
rlx 2011-09-01 04:46:44 +00:00
commit 9a57ba6208
10 changed files with 329 additions and 229 deletions

View file

@ -2,10 +2,9 @@
pandora.ui.sectionButtons = function() {
var that = Ox.ButtonGroup({
buttons: [
{id: 'site', selected: pandora.user.ui.section == 'site', title: pandora.site.site.name},
{id: 'items', selected: pandora.user.ui.section == 'items', title: pandora.site.itemName.plural},
{id: 'texts', selected: pandora.user.ui.section == 'texts', title: 'Texts'},
{id: 'admin', selected: pandora.user.ui.section == 'admin', title: 'Admin'}
{id: 'edits', selected: pandora.user.ui.section == 'edits', title: 'Edits'},
{id: 'texts', selected: pandora.user.ui.section == 'texts', title: 'Texts'}
],
id: 'sectionButtons',
selectable: true
@ -16,14 +15,12 @@ pandora.ui.sectionButtons = function() {
.bindEvent({
change: function(event, data) {
var section = data.selected[0];
if (section == 'site') {
pandora.URL.set(pandora.user.ui.sitePage);
} else if (section == 'items') {
if (section == 'items') {
pandora.URL.set(pandora.Query.toString());
} else if (section == 'clips') {
pandora.URL.set('clips');
} else if (section == 'texts') {
pandora.URL.set('texts');
} else if (section == 'admin') {
pandora.URL.set('admin');
}
}
});