Mercurial > hg > orthanc-stone
view Applications/StoneWebViewer/Plugin/OrthancExplorer.js @ 1556:8898f8f755c8
typo
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 18 Aug 2020 11:58:47 +0200 |
parents | d1806b4e4839 |
children | 8c5f9864545f |
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); } }); } }); } }); });