Mercurial > hg > orthanc-stone
view StoneWebViewer/Plugin/OrthancExplorer.js @ 1496:d450653b46d3
build stone web viewer using docker
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 25 Jun 2020 17:50:36 +0200 |
parents | fb74ed5d8c22 |
children | 22d1bd085c19 |
line wrap: on
line source
$('#study').live('pagebeforecreate', function() { var b = $('<a>') .attr('data-role', 'button') .attr('href', '#') .attr('data-icon', 'search') .attr('data-theme', 'e') .text('Stone Web Viewer'); b.insertBefore($('#study-delete').parent().parent()); b.click(function() { if ($.mobile.pageData) { $.ajax({ url: '../studies/' + $.mobile.pageData.uuid, dataType: 'json', cache: false, success: function(study) { var studyInstanceUid = study.MainDicomTags.StudyInstanceUID; window.open('../stone-webviewer/index.html?study=' + studyInstanceUid); } }); } }); }); $('#series').live('pagebeforecreate', function() { var b = $('<a>') .attr('data-role', 'button') .attr('href', '#') .attr('data-icon', 'search') .attr('data-theme', 'e') .text('Stone Web Viewer'); b.insertBefore($('#series-delete').parent().parent()); b.click(function() { if ($.mobile.pageData) { $.ajax({ url: '../series/' + $.mobile.pageData.uuid, dataType: 'json', cache: false, success: function(series) { $.ajax({ url: '../studies/' + series.ParentStudy, dataType: 'json', cache: false, success: function(study) { var studyInstanceUid = study.MainDicomTags.StudyInstanceUID; var seriesInstanceUid = series.MainDicomTags.SeriesInstanceUID; window.open('../stone-webviewer/index.html?study=' + studyInstanceUid + '&series=' + seriesInstanceUid); } }); } }); } }); });