Mercurial > hg > orthanc-stone
diff Applications/StoneWebViewer/WebApplication/app.js @ 1611:787db80a5a1b
new class MacroLayerRenderer
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 29 Oct 2020 18:02:03 +0100 |
parents | 595c0952ef7e |
children | 5f0660fe06c3 |
line wrap: on
line diff
--- a/Applications/StoneWebViewer/WebApplication/app.js Thu Oct 29 17:13:13 2020 +0100 +++ b/Applications/StoneWebViewer/WebApplication/app.js Thu Oct 29 18:02:03 2020 +0100 @@ -724,7 +724,12 @@ } if (e.data.type == 'show-osirix-annotations') { - app.LoadOsiriXAnnotations(e.data.xml, true /* clear previous annotations */); + var clear = true; // Whether to clear previous annotations + if ('clear' in e.data) { + clear = e.data.clear; + } + + app.LoadOsiriXAnnotations(e.data.xml, clear); } else { alert('Unknown message type: ' + e.data.type); } @@ -743,7 +748,8 @@ window.postMessage({ 'type': 'show-osirix-annotations', - 'xml': response.data + 'xml': response.data, + 'clear': true }, targetOrigin); }); }