cablegates/static/js/pandora/ui/sectionSelect.js

22 lines
742 B
JavaScript
Raw Normal View History

2011-05-25 19:42:45 +00:00
// vim: et:ts=4:sw=4:sts=4:ft=js
pandora.ui.sectionSelect = function() {
// fixme: duplicated
2011-06-19 17:49:25 +00:00
var that = Ox.Select({
2011-05-25 19:42:45 +00:00
id: 'sectionSelect',
items: [
2011-06-06 15:48:11 +00:00
{checked: pandora.user.ui.section == 'site', id: 'site', title: pandora.site.site.name},
{checked: pandora.user.ui.section == 'items', id: 'items', title: pandora.site.itemName.plural},
{checked: pandora.user.ui.section == 'texts', id: 'texts', title: 'Texts'},
{checked: pandora.user.ui.section == 'admin', id: 'admin', title: 'Admin'}
2011-05-25 19:42:45 +00:00
]
}).css({
float: 'left',
margin: '4px'
})
.bindEvent({
});
return that;
};