Mercurial > hg > orthanc-webviewer
diff Resources/OrthancExplorer.js @ 0:02f7a0400a91
initial commit
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 25 Feb 2015 13:45:35 +0100 |
parents | |
children | 51b727a268f4 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Resources/OrthancExplorer.js Wed Feb 25 13:45:35 2015 +0100 @@ -0,0 +1,18 @@ +$('#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 series = $.mobile.pageData.uuid; + window.open('/web-viewer/app/viewer.html?series=' + series); + } + }); +});