Mercurial > hg > orthanc
diff OrthancServer/OrthancExplorer/explorer.js @ 4804:ae643f664628
new option returnUnsupportedImage for /preview & /rendered routes
author | Alain Mazy <am@osimis.io> |
---|---|
date | Thu, 28 Oct 2021 13:05:56 +0200 |
parents | 72a850947b11 |
children | 70d2a97ca8cb 7053502fbf97 |
line wrap: on
line diff
--- a/OrthancServer/OrthancExplorer/explorer.js Mon Oct 25 14:15:20 2021 +0200 +++ b/OrthancServer/OrthancExplorer/explorer.js Thu Oct 28 13:05:56 2021 +0200 @@ -1113,7 +1113,7 @@ if (frames.length == 1) { // Viewing a single-frame image - jQuery.slimbox('../instances/' + pageData.uuid + '/preview', '', { + jQuery.slimbox('../instances/' + pageData.uuid + '/preview?returnUnsupportedImage', '', { overlayFadeDuration : 1, resizeDuration : 1, imageFadeDuration : 1 @@ -1125,7 +1125,7 @@ images = []; for (var i = 0; i < frames.length; i++) { - images.push([ '../instances/' + pageData.uuid + '/frames/' + i + '/preview' ]); + images.push([ '../instances/' + pageData.uuid + '/frames/' + i + '/preview?returnUnsupportedImage' ]); } jQuery.slimbox(images, 0, { @@ -1155,7 +1155,7 @@ images = []; for (var i = 0; i < instances.length; i++) { - images.push([ '../instances/' + instances[i].ID + '/preview', + images.push([ '../instances/' + instances[i].ID + '/preview?returnUnsupportedImage', (i + 1).toString() + '/' + instances.length.toString() ]) }