Mercurial > hg > orthanc-webviewer
view Resources/OrthancExplorer.js @ 231:7097d0eaac76 transcoding
Move the GDCM decoder out of the Orthanc Web viewer plugin as a separate plugin
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 11 May 2020 15:34:12 +0200 |
parents | 5d15a86bad26 |
children |
line wrap: on
line source
$('#series').live('pagebeforecreate', function() { //$('#series-preview').parent().remove(); var b = $('<a>') .attr('data-role', 'button') .attr('href', '#') .attr('data-icon', 'search') .attr('data-theme', 'e') .text('Orthanc Web Viewer'); b.insertBefore($('#series-delete').parent().parent()); b.click(function() { if ($.mobile.pageData) { var urlSearchParams = { "series" : $.mobile.pageData.uuid }; if ("authorizationTokens" in window) { for (var token in authorizationTokens) { urlSearchParams[token] = authorizationTokens[token]; } } window.open('../web-viewer/app/viewer.html?' + $.param(urlSearchParams)); } }); });