File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff 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() {
1517function 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}
You can’t perform that action at this time.
0 commit comments