diff OrthancExplorer/explorer.js @ 151:11e48e70c039

instance naming
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 23 Oct 2012 14:34:57 +0200
parents a7bffca29031
children 4829c054751a
line wrap: on
line diff
--- a/OrthancExplorer/explorer.js	Tue Oct 16 15:30:19 2012 +0200
+++ b/OrthancExplorer/explorer.js	Tue Oct 23 14:34:57 2012 +0200
@@ -322,6 +322,16 @@
 
 
 $('#find-patients').live('pagebeforeshow', function() {
+  //$('.orthanc-name').each(
+  
+  $.ajax({
+    url: '/system',
+    dataType: 'json',
+    success: function(s) {
+      $('.orthanc-name').html(s.Name + ' &raquo; ');
+    }
+  });
+
   GetMultipleResources('patients', null, function(patients) {
     var target = $('#all-patients');
     $('li', target).remove();