view Resources/OrthancExplorer.js @ 55:56930e8c30b7

missing file
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 31 Jul 2015 10:48:13 +0200
parents 51b727a268f4
children 465bed3c5c81
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 series = $.mobile.pageData.uuid;
      window.open('/web-viewer/app/viewer.html?series=' + series);
    }
  });
});