diff OrthancExplorer/explorer.js @ 351:64625960af22

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 28 Jan 2013 15:58:09 +0100
parents a9752f88400c
children 4d76fce206ef
line wrap: on
line diff
--- a/OrthancExplorer/explorer.js	Mon Jan 28 15:36:44 2013 +0100
+++ b/OrthancExplorer/explorer.js	Mon Jan 28 15:58:09 2013 +0100
@@ -837,7 +837,11 @@
             async: false,
             cache: false,
             success: function(s) {
-              $.mobile.changePage('#patient?uuid=' + s.PatientID);
+              // The following line does not work...
+              //$.mobile.changePage('explorer.html#patient?uuid=' + s.PatientID);
+
+              window.location.assign('explorer.html#patient?uuid=' + s.PatientID);
+              window.location.reload();
             }
           });
         },
@@ -866,3 +870,8 @@
   OpenAnonymizeResourceDialog('../series/' + $.mobile.pageData.uuid,
                               'Anonymize this series?');
 });
+
+$('#patient-anonymize').live('click', function() {
+  OpenAnonymizeResourceDialog('../patients/' + $.mobile.pageData.uuid,
+                              'Anonymize this patient?');
+});