# HG changeset patch # User Sebastien Jodogne # Date 1737554842 -3600 # Node ID fc320529cdc0af0db50680a07e700a3929bf1900 # Parent 2b0002d3429569493a8982060d5c3353c6323f4f added JavaScript function GetActiveSeries() diff -r 2b0002d34295 -r fc320529cdc0 Applications/StoneWebViewer/WebApplication/app.js --- a/Applications/StoneWebViewer/WebApplication/app.js Fri Jan 17 12:32:59 2025 +0100 +++ b/Applications/StoneWebViewer/WebApplication/app.js Wed Jan 22 15:07:22 2025 +0100 @@ -729,6 +729,24 @@ } }, + GetActiveSeries: function() { + if (this.activeViewport == 1) { + return this.viewport1Content.series; + } + else if (this.activeViewport == 2) { + return this.viewport2Content.series; + } + else if (this.activeViewport == 3) { + return this.viewport3Content.series; + } + else if (this.activeViewport == 4) { + return this.viewport4Content.series; + } + else { + return null; + } + }, + SetResources: function(sourceStudies, sourceSeries) { // Here one can fix input studies/series for missing DICOM tags // that are needed for the Stone Web viewer (e.g. "hand.dcm")