export annotations

This commit is contained in:
j 2019-02-01 14:49:43 +05:30
commit fbcbc2ab7b
4 changed files with 82 additions and 2 deletions

View file

@ -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({