export annotations
This commit is contained in:
parent
9c765bf863
commit
fbcbc2ab7b
4 changed files with 82 additions and 2 deletions
|
|
@ -31,6 +31,8 @@ oml.ui.annotationPanel = function() {
|
|||
{id: 'note', title: Ox._('By Note Text'), checked: false},
|
||||
{id: 'date', title: Ox._('By Date Added'), checked: false}
|
||||
]},
|
||||
{},
|
||||
{id: 'exportAnnotations', title: Ox._('Export Annotations')},
|
||||
],
|
||||
style: 'square',
|
||||
title: 'set',
|
||||
|
|
@ -39,7 +41,20 @@ oml.ui.annotationPanel = function() {
|
|||
}).css({
|
||||
// borderColor: 'transparent',
|
||||
float: 'right'
|
||||
}).appendTo($bar);
|
||||
}).appendTo($bar)
|
||||
.bindEvent({
|
||||
click: function(data) {
|
||||
var id = data.id;
|
||||
if (id == 'exportAnnotations') {
|
||||
oml.api.get({
|
||||
id: oml.user.ui.item,
|
||||
keys: []
|
||||
}, function(result) {
|
||||
oml.ui.exportAnnotationsDialog(result.data).open()
|
||||
})
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
var ui = oml.user.ui;
|
||||
var that = Ox.SplitPanel({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue