diff OrthancExplorer/explorer.js @ 250:f23318b11b39

creation of zip files
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 05 Dec 2012 12:29:10 +0100
parents bee20e978835
children f2286c741109
line wrap: on
line diff
--- a/OrthancExplorer/explorer.js	Wed Dec 05 09:28:06 2012 +0100
+++ b/OrthancExplorer/explorer.js	Wed Dec 05 12:29:10 2012 +0100
@@ -626,6 +626,7 @@
 });
 
 
+
 $('#instance-preview').live('click', function(e) {
   if ($.mobile.pageData) {
     GetSingleResource('instances', $.mobile.pageData.uuid + '/frames', function(frames) {
@@ -768,3 +769,20 @@
   else
     $('.tag-name').hide();
 });
+
+
+$('#patient-archive').live('click', function(e) {
+  e.preventDefault();  //stop the browser from following
+  window.location.href = '../patients/' + $.mobile.pageData.uuid + '/archive';
+});
+
+$('#study-archive').live('click', function(e) {
+  e.preventDefault();  //stop the browser from following
+  window.location.href = '../studies/' + $.mobile.pageData.uuid + '/archive';
+});
+
+$('#series-archive').live('click', function(e) {
+  e.preventDefault();  //stop the browser from following
+  window.location.href = '../series/' + $.mobile.pageData.uuid + '/archive';
+});
+