Open Media Library
This commit is contained in:
commit
2ee2bc178a
228 changed files with 85988 additions and 0 deletions
28
static/js/sectionButtons.js
Normal file
28
static/js/sectionButtons.js
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
'use strict';
|
||||
|
||||
oml.ui.sectionButtons = function() {
|
||||
|
||||
var ui = oml.user.ui,
|
||||
|
||||
that = Ox.ButtonGroup({
|
||||
buttons: [
|
||||
{id: 'books', title: Ox._('Books')},
|
||||
{id: 'music', title: Ox._('Music'), disabled: true},
|
||||
{id: 'movies', title: Ox._('Movies'), disabled: true}
|
||||
],
|
||||
style: 'squared',
|
||||
selectable: true,
|
||||
value: 'books'
|
||||
}).css({
|
||||
float: 'left',
|
||||
margin: '4px'
|
||||
})
|
||||
.bindEvent({
|
||||
change: function(data) {
|
||||
// ...
|
||||
}
|
||||
});
|
||||
|
||||
return that;
|
||||
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue