Compare commits
2 Commits
a8942d79d2
...
6f8acb90d9
Author | SHA1 | Date |
---|---|---|
j | 6f8acb90d9 | |
j | 255de5664d |
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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[
|
||||
|
|
Loading…
Reference in New Issue