Skip to content

Commit 722a9b9

Browse files
authored
Merge pull request #1071 from camicroscope/fix-port-xml
template and closure fixes to port
2 parents a31e868 + e085559 commit 722a9b9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/port/import.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ function prepareAnnot() {
66
output['provenance']['image']['slide'] = document.getElementById('slide_id').value;
77
output['provenance']['analysis']['execution'] = document.getElementById('annot_name').value;
88
output['properties']['annotations']['name'] = document.getElementById('annot_name').value;
9+
output['provenance']['analysis']['name'] = document.getElementById('annot_name').value;
10+
output['provenance']['analysis']['execution_id'] = document.getElementById('annot_name').value;
911
} catch (e) {
1012
alert(e);
1113
}
@@ -15,8 +17,8 @@ function prepareAnnot() {
1517
function saveAnnot() {
1618
try {
1719
let doc = JSON.parse(document.getElementById('output').value);
20+
store.addMark(doc).then((x)=>alert('done!')).catch((e)=>alert(e));
1821
} catch (e) {
1922
alert(e);
2023
}
21-
store.addMark(doc).then((x)=>alert('done!')).catch((e)=>alert(e));
2224
}

0 commit comments

Comments
 (0)