From 587ca65b76653c16d6b6fd8e833aaf29b31a11d2 Mon Sep 17 00:00:00 2001 From: Birm Date: Wed, 15 Jan 2025 14:10:46 -0500 Subject: [PATCH 1/2] Update import.html --- apps/port/import.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 + From 8f5cd59fd66436a0f823c2b4a46a8a31091f947e Mon Sep 17 00:00:00 2001 From: Birm Date: Wed, 15 Jan 2025 14:12:05 -0500 Subject: [PATCH 2/2] need .value --- apps/port/import.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }