Mercurial > hg > orthanc-stone
diff Applications/StoneWebViewer/WebApplication/app.js @ 2016:f30d7055ed6a
new URL argument "menu" to change the layout of the list of studies/series
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 03 Dec 2022 08:12:14 +0100 |
parents | d0e68dd335dd |
children | 7e45941acc1d |
line wrap: on
line diff
--- a/Applications/StoneWebViewer/WebApplication/app.js Sat Dec 03 07:59:13 2022 +0100 +++ b/Applications/StoneWebViewer/WebApplication/app.js Sat Dec 03 08:12:14 2022 +0100 @@ -1339,6 +1339,21 @@ alert('No study, nor patient was provided in the URL!'); } } + + // New in Stone Web viewer 2.5 + var menu = getParameterFromUrl('menu'); + if (menu !== undefined) { + if (menu == 'hidden') { + app.leftVisible = false; + } else if (menu == 'small' || + menu == 'grid' || + menu == 'full') { + app.leftVisible = true; + app.leftMode = menu; + } else { + alert('Bad value for the "menu" option in the URL (can be "hidden", "small", "grid", or "full"): ' + menu); + } + } });