Mercurial > hg > orthanc-webviewer
comparison WebApplication/viewer.js @ 185:3e45f3752074
Fix download of DICOM instance from the toolbox
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 13 Mar 2018 10:24:38 +0100 |
parents | 81f16c5667ba |
children | 2f27287c047c |
comparison
equal
deleted
inserted
replaced
184:59c6ea40fe4f | 185:3e45f3752074 |
---|---|
159 iframe = document.createElement('iframe'); | 159 iframe = document.createElement('iframe'); |
160 iframe.id = hiddenIFrameID; | 160 iframe.id = hiddenIFrameID; |
161 iframe.style.display = 'none'; | 161 iframe.style.display = 'none'; |
162 document.body.appendChild(iframe); | 162 document.body.appendChild(iframe); |
163 } | 163 } |
164 iframe.src = '../../instances/' + instance + '/file'; | 164 |
165 var id = instance; | |
166 var pos = instance.indexOf('_'); | |
167 if (pos != -1) { | |
168 // Remove the frame index (after the underscore) | |
169 id = id.substring(0, pos); | |
170 } | |
171 | |
172 iframe.src = '../../instances/' + id + '/file'; | |
165 } | 173 } |
166 | 174 |
167 | 175 |
168 function AdjustZoom() | 176 function AdjustZoom() |
169 { | 177 { |