diff --git a/apps/port/import.html b/apps/port/import.html index 1f26d7a31..a3e7f4a2e 100644 --- a/apps/port/import.html +++ b/apps/port/import.html @@ -22,15 +22,15 @@

Import Annotations

Info


-
+

-
+

File Contents

-
+

@@ -38,9 +38,9 @@

File Contents


-
+
- \ No newline at end of file + diff --git a/apps/port/import.js b/apps/port/import.js index f487d604f..9242a793c 100644 --- a/apps/port/import.js +++ b/apps/port/import.js @@ -2,7 +2,7 @@ const store = new Store('../../data'); function prepareAnnot() { try { - let output = JSON.parse(document.getElementById('input')); + let output = JSON.parse(document.getElementById('input').value); output['provenance']['image']['slide'] = document.getElementById('slide_id').value; output['provenance']['analysis']['execution'] = document.getElementById('annot_name').value; output['properties']['annotations']['name'] = document.getElementById('annot_name').value; @@ -14,7 +14,7 @@ function prepareAnnot() { function saveAnnot() { try { - let doc = JSON.parse(document.getElementById('output')); + let doc = JSON.parse(document.getElementById('output').value); } catch (e) { alert(e); }