Compare commits

...

2 commits

Author SHA1 Message Date
rlx
b5d0a9f136 Merge branch 'master' of code.0x2620.org:0x2620/openmedialibrary 2019-01-24 17:32:44 +05:30
rlx
d7c59f5794 add menu buttons 2019-01-24 17:32:33 +05:30

View file

@ -2,19 +2,40 @@
oml.ui.annotationPanel = function() { oml.ui.annotationPanel = function() {
var ui = oml.user.ui, var $bar = Ox.Bar({size: 16});
that = Ox.SplitPanel({
elements: [ var $button = Ox.Button({
{ disabled: true,
element: Ox.Bar({size: 16}), style: 'symbol',
size: 16 title: 'add',
}, type: 'image'
{ }).appendTo($bar);
element: oml.$ui.annotationFolder = oml.ui.annotationFolder()
} var $menuButton = Ox.MenuButton({
], items: [
orientation: 'vertical' {id: 'sortAnnotations', title: 'Sort Annotations', disabled: true}
}) ],
style: 'square',
title: 'set',
type: 'image',
width: 16
}).css({
float: 'right'
}).appendTo($bar);
var ui = oml.user.ui;
var that = Ox.SplitPanel({
elements: [
{
element: $bar,
size: 16
},
{
element: oml.$ui.annotationFolder = oml.ui.annotationFolder()
}
],
orientation: 'vertical'
});
return that; return that;