Mercurial > hg > orthanc-stone
diff Applications/StoneWebViewer/WebApplication/app.js @ 2078:fdb012c86a75 deep-learning
integration mainline->deep-learning
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 12 Jul 2023 21:21:11 +0200 |
parents | 82dbe2729b69 07964689cb0b |
children | de049fd88697 |
line wrap: on
line diff
--- a/Applications/StoneWebViewer/WebApplication/app.js Fri May 19 17:19:50 2023 +0200 +++ b/Applications/StoneWebViewer/WebApplication/app.js Wed Jul 12 21:21:11 2023 +0200 @@ -2,8 +2,8 @@ * Stone of Orthanc * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics * Department, University Hospital of Liege, Belgium - * Copyright (C) 2017-2022 Osimis S.A., Belgium - * Copyright (C) 2021-2022 Sebastien Jodogne, ICTEAM UCLouvain, Belgium + * Copyright (C) 2017-2023 Osimis S.A., Belgium + * Copyright (C) 2021-2023 Sebastien Jodogne, ICTEAM UCLouvain, Belgium * * This program is free software: you can redistribute it and/or * modify it under the terms of the GNU Affero General Public License @@ -1409,8 +1409,8 @@ var seriesInstanceUid = args.detail.seriesInstanceUid; that.UpdateIsSeriesComplete(studyInstanceUid, seriesInstanceUid); - // Automatically open the first series to be loaded (new in Stone Web viewer 2.5) - if (that.isFirstSeries) { + // Automatically open the first selected series to be loaded (new in Stone Web viewer 2.5) + if (that.isFirstSeries && (that.selectedStudies.length == 0 || that.selectedStudies.includes(studyInstanceUid))) { that.SetViewportSeriesInstanceUid(1, seriesInstanceUid); that.isFirstSeries = false; }