fix position separator
This commit is contained in:
parent
d5282b064a
commit
22d9d92369
1 changed files with 4 additions and 1 deletions
|
@ -218,12 +218,16 @@ txtjs.noteExists = function(note) {
|
|||
}
|
||||
|
||||
txtjs.onMessage = function(data, event) {
|
||||
console.log('onMessage', event, data)
|
||||
if (event == 'selectAnnotation') {
|
||||
txtjs.selectNote(data.id, false)
|
||||
} else if (event == 'addAnnotation') {
|
||||
txtjs.addNoteFromSelection()
|
||||
} else if (event == 'addAnnotations') {
|
||||
data.annotations.forEach(function(note) {
|
||||
////
|
||||
note.position = note.position.replace(':', ',')
|
||||
////
|
||||
txtjs.renderNote(note)
|
||||
txtjs.notes.push(note)
|
||||
})
|
||||
|
@ -235,7 +239,6 @@ txtjs.onMessage = function(data, event) {
|
|||
|
||||
txtjs.postMessage = function(action, data) {
|
||||
console.log('postMessage', action, data)
|
||||
//parent.postMessage(JSON.stringify({action: action, data: data}), '*')
|
||||
Ox.$parent.postMessage(action.replace('Note', 'Annotation'), data)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue