disable edits and texts sections

This commit is contained in:
rolux 2011-11-09 09:49:59 +00:00
parent f22c03bbea
commit 98ebfffbb2
4 changed files with 17 additions and 9 deletions

View file

@ -75,7 +75,11 @@ pandora.URL = (function() {
Ox.getPositionById(pandora.site.sitePages, state.page) > -1
|| state.page == 'software'
) {
if (pandora.$ui.siteDialog) {
pandora.$ui.siteDialog.select(state.page);
} else {
pandora.$ui.siteDialog = pandora.ui.siteDialog(state.page).open();
}
} else if (state.page == 'help') {
pandora.$ui.helpDialog = pandora.ui.helpDialog().open();
} else if (['signup', 'signin'].indexOf(state.page) > -1) {
@ -258,7 +262,6 @@ pandora.URL = (function() {
views: views
});
///*
window.onhashchange = function() {
Ox.Request.cancel();
that.parse();
@ -285,7 +288,6 @@ pandora.URL = (function() {
that.parse();
}
};
//*/
return that;

View file

@ -4,8 +4,8 @@ pandora.ui.sectionButtons = function() {
var that = Ox.ButtonGroup({
buttons: [
{id: 'items', selected: pandora.user.ui.section == 'items', title: pandora.site.itemName.plural},
{id: 'edits', selected: pandora.user.ui.section == 'edits', title: 'Edits'},
{id: 'texts', selected: pandora.user.ui.section == 'texts', title: 'Texts'}
{id: 'edits', selected: pandora.user.ui.section == 'edits', title: 'Edits', disabled: true},
{id: 'texts', selected: pandora.user.ui.section == 'texts', title: 'Texts', disabled: true}
],
id: 'sectionButtons',
selectable: true

View file

@ -6,8 +6,8 @@ pandora.ui.sectionSelect = function() {
id: 'sectionSelect',
items: [
{checked: pandora.user.ui.section == 'items', id: 'items', title: pandora.site.itemName.plural},
{checked: pandora.user.ui.section == 'edits', id: 'edits', title: 'Edits'},
{checked: pandora.user.ui.section == 'texts', id: 'texts', title: 'Texts'}
{checked: pandora.user.ui.section == 'edits', id: 'edits', title: 'Edits', disabled: true},
{checked: pandora.user.ui.section == 'texts', id: 'texts', title: 'Texts', disabled: true}
]
}).css({
float: 'left',

View file

@ -8,8 +8,9 @@ pandora.ui.siteDialog = function(section) {
Ox.clone(pandora.site.sitePages),
[{id: 'software', title: 'Software'}]
);
Ox.print('SITE DIALOG', section, tabs)
Ox.getObjectById(tabs, section).selected = true;
//Ox.getObjectById(tabs, section).selected = true;
tabs[Ox.getPositionById(tabs, section)].selected = true;
//Ox.print('SITE DIALOG', section, Ox.getObjectById(tabs, section), Ox.getObjectById(tabs, section).selected)
var $tabPanel = Ox.TabPanel({
content: function(id) {
var $content = Ox.Element().css({padding: '16px', overflowY: 'auto'});
@ -149,6 +150,11 @@ pandora.ui.siteDialog = function(section) {
}
});
$dialog.select = function(id) {
$tabPanel.select(id);
return $dialog;
};
return $dialog;
};