comparison 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
comparison
equal deleted inserted replaced
-1:000000000000 0:02f7a0400a91
1 $('#series').live('pagebeforecreate', function() {
2 $('#series-preview').parent().remove();
3
4 var b = $('<a>')
5 .attr('data-role', 'button')
6 .attr('href', '#')
7 .attr('data-icon', 'search')
8 .attr('data-theme', 'e')
9 .text('Orthanc Web Viewer');
10
11 b.insertBefore($('#series-delete').parent().parent());
12 b.click(function() {
13 if ($.mobile.pageData) {
14 var series = $.mobile.pageData.uuid;
15 window.open('/web-viewer/app/viewer.html?series=' + series);
16 }
17 });
18 });