From dfe28225587623ab7db161540ac1d269e34922f6 Mon Sep 17 00:00:00 2001 From: j Date: Thu, 31 Jan 2019 11:52:36 +0530 Subject: [PATCH] bind removeAnnotation event --- txt.js/txt.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/txt.js/txt.js b/txt.js/txt.js index ee85393..75513b1 100644 --- a/txt.js/txt.js +++ b/txt.js/txt.js @@ -9,6 +9,9 @@ Ox.load({UI: {loadCSS: false}}, function() { txtjs.renderNote(note) txtjs.notes.push(note) }) + } else if (event == 'removeAnnotation') { + txtjs.selectNote(data.id) + txtjs.removeNote() } }) })