fix position separator

This commit is contained in:
rlx 2019-02-01 14:42:34 +05:30
parent d5282b064a
commit 22d9d92369

View file

@ -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)
}