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

21 lines
645 B
JavaScript
Raw Normal View History

2011-07-29 18:37:11 +00:00
// vim: et:ts=4:sw=4:sts=4:ft=javascript
2011-05-25 19:42:45 +00:00
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 == 'items', id: 'items', title: pandora.site.itemName.plural},
2011-09-01 04:46:44 +00:00
{checked: pandora.user.ui.section == 'edits', id: 'edits', title: 'Edits'},
{checked: pandora.user.ui.section == 'texts', id: 'texts', title: 'Texts'}
2011-05-25 19:42:45 +00:00
]
}).css({
float: 'left',
margin: '4px'
})
.bindEvent({
});
return that;
};