disable edits and texts sections
This commit is contained in:
parent
f22c03bbea
commit
98ebfffbb2
4 changed files with 17 additions and 9 deletions
|
@ -75,7 +75,11 @@ pandora.URL = (function() {
|
||||||
Ox.getPositionById(pandora.site.sitePages, state.page) > -1
|
Ox.getPositionById(pandora.site.sitePages, state.page) > -1
|
||||||
|| state.page == 'software'
|
|| state.page == 'software'
|
||||||
) {
|
) {
|
||||||
pandora.$ui.siteDialog = pandora.ui.siteDialog(state.page).open();
|
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') {
|
} else if (state.page == 'help') {
|
||||||
pandora.$ui.helpDialog = pandora.ui.helpDialog().open();
|
pandora.$ui.helpDialog = pandora.ui.helpDialog().open();
|
||||||
} else if (['signup', 'signin'].indexOf(state.page) > -1) {
|
} else if (['signup', 'signin'].indexOf(state.page) > -1) {
|
||||||
|
@ -258,7 +262,6 @@ pandora.URL = (function() {
|
||||||
views: views
|
views: views
|
||||||
});
|
});
|
||||||
|
|
||||||
///*
|
|
||||||
window.onhashchange = function() {
|
window.onhashchange = function() {
|
||||||
Ox.Request.cancel();
|
Ox.Request.cancel();
|
||||||
that.parse();
|
that.parse();
|
||||||
|
@ -285,7 +288,6 @@ pandora.URL = (function() {
|
||||||
that.parse();
|
that.parse();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
//*/
|
|
||||||
|
|
||||||
return that;
|
return that;
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,8 @@ pandora.ui.sectionButtons = function() {
|
||||||
var that = Ox.ButtonGroup({
|
var that = Ox.ButtonGroup({
|
||||||
buttons: [
|
buttons: [
|
||||||
{id: 'items', selected: pandora.user.ui.section == 'items', title: pandora.site.itemName.plural},
|
{id: 'items', selected: pandora.user.ui.section == 'items', title: pandora.site.itemName.plural},
|
||||||
{id: 'edits', selected: pandora.user.ui.section == 'edits', title: 'Edits'},
|
{id: 'edits', selected: pandora.user.ui.section == 'edits', title: 'Edits', disabled: true},
|
||||||
{id: 'texts', selected: pandora.user.ui.section == 'texts', title: 'Texts'}
|
{id: 'texts', selected: pandora.user.ui.section == 'texts', title: 'Texts', disabled: true}
|
||||||
],
|
],
|
||||||
id: 'sectionButtons',
|
id: 'sectionButtons',
|
||||||
selectable: true
|
selectable: true
|
||||||
|
|
|
@ -6,8 +6,8 @@ pandora.ui.sectionSelect = function() {
|
||||||
id: 'sectionSelect',
|
id: 'sectionSelect',
|
||||||
items: [
|
items: [
|
||||||
{checked: pandora.user.ui.section == 'items', id: 'items', title: pandora.site.itemName.plural},
|
{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 == 'edits', id: 'edits', title: 'Edits', disabled: true},
|
||||||
{checked: pandora.user.ui.section == 'texts', id: 'texts', title: 'Texts'}
|
{checked: pandora.user.ui.section == 'texts', id: 'texts', title: 'Texts', disabled: true}
|
||||||
]
|
]
|
||||||
}).css({
|
}).css({
|
||||||
float: 'left',
|
float: 'left',
|
||||||
|
|
|
@ -8,8 +8,9 @@ pandora.ui.siteDialog = function(section) {
|
||||||
Ox.clone(pandora.site.sitePages),
|
Ox.clone(pandora.site.sitePages),
|
||||||
[{id: 'software', title: 'Software'}]
|
[{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({
|
var $tabPanel = Ox.TabPanel({
|
||||||
content: function(id) {
|
content: function(id) {
|
||||||
var $content = Ox.Element().css({padding: '16px', overflowY: 'auto'});
|
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;
|
return $dialog;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue