diff WebApplication/viewer.js @ 71:9bb7caee0509

Fix for old versions of jQuery
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 08 Aug 2015 11:23:39 +0200
parents 20af33af313a
children 46ec13a1177c
line wrap: on
line diff
--- a/WebApplication/viewer.js	Fri Aug 07 21:24:03 2015 +0200
+++ b/WebApplication/viewer.js	Sat Aug 08 11:23:39 2015 +0200
@@ -363,15 +363,10 @@
     success: function(volume) {
       if (volume.SortedInstances.length != 0) {
         instances = volume.SortedInstances;
-        $('#topright').html([
-          $('<span>').text(volume.PatientID),
-          $('<br>'),
-          $('<span>').text(volume.PatientName),
-          $('<br>'),
-          $('<span>').text(volume.StudyDescription),
-          $('<br>'),
-          $('<span>').text(volume.SeriesDescription)
-        ]);
+        $('#topright').html(volume.PatientID + '<br/>' +
+                            volume.PatientName + '<br/>' +
+                            volume.StudyDescription + '<br/>' +
+                            volume.SeriesDescription + '<br/>');
       }
     }
   });