Compare commits

...

2 Commits

Author SHA1 Message Date
j 6f8acb90d9 fix annotation export for books without author 2019-02-14 18:07:08 +05:30
j 255de5664d fix install 2019-02-14 17:42:55 +05:30
3 changed files with 6 additions and 3 deletions

View File

@ -47,7 +47,7 @@ CREATE TABLE user (
CHECK (peered IN (0, 1)),
CHECK (online IN (0, 1))
);
CREATE INDEX ix_user_nichname ON user (nichname);
CREATE INDEX ix_user_nickname ON user (nickname);
CREATE TABLE metadata (
created DATETIME,
modified DATETIME,

View File

@ -45,7 +45,10 @@ oml.ui.exportAnnotationsDialog = function(data) {
function getAnnotationsText() {
var annotations = oml.$ui.viewer.getAnnotations()
var text = 'Annotations for ' + data.title + ' (' + data.author.join(', ') + ')\n\n\n\n'
var text = 'Annotations for ' + data.title + (
data.author ?' (' + data.author.join(', ') + ')'
: ''
) + '\n\n\n\n'
text += annotations.map(function(annotation) {
var page = annotation.pageLabel || annotation.page
var text = 'Quote' + (page ? ' Page ' + page : '' )+ ':\n\n' + annotation.text

View File

@ -68,7 +68,7 @@ oml.ui.folders = function() {
function selectList(gainFocus) {
var split = ui._list.split(':'),
index = userIndex[split[0]],
index = userIndex ? userIndex[split[0]] : 0,
list = split[1],
$selectedList = !ui._list ? oml.$ui.librariesList
: !list ? oml.$ui[