# HG changeset patch # User Sebastien Jodogne # Date 1424946904 -3600 # Node ID c919d488471f4b1ffc8ec8f55cc5bd7dc22f5914 # Parent 828c61fc82535d35ab71e524001eadcc8bbf6dd9 throbber to reflect the receiving of instances diff -r 828c61fc8253 -r c919d488471f WebApplication/images/throbber.gif Binary file WebApplication/images/throbber.gif has changed diff -r 828c61fc8253 -r c919d488471f WebApplication/viewer.css --- a/WebApplication/viewer.css Thu Feb 26 10:26:51 2015 +0100 +++ b/WebApplication/viewer.css Thu Feb 26 11:35:04 2015 +0100 @@ -78,6 +78,10 @@ left: 10px; } +#topleft img { + vertical-align: middle; +} + #topright { position: absolute; top: 10px; diff -r 828c61fc8253 -r c919d488471f WebApplication/viewer.html --- a/WebApplication/viewer.html Thu Feb 26 10:26:51 2015 +0100 +++ b/WebApplication/viewer.html Thu Feb 26 11:35:04 2015 +0100 @@ -22,6 +22,10 @@
+  
Render Time:
diff -r 828c61fc8253 -r c919d488471f WebApplication/viewer.js --- a/WebApplication/viewer.js Thu Feb 26 10:26:51 2015 +0100 +++ b/WebApplication/viewer.js Thu Feb 26 11:35:04 2015 +0100 @@ -346,6 +346,8 @@ text: false }); + $('#unstable').tooltip(); + var series = window.url('?series', window.location.search); if (series == null) return; @@ -382,6 +384,30 @@ } + $.ajax({ + type: 'GET', + url: '../../series/' + series, + dataType: 'json', + cache: false, + async: true, + success: function(series) { + var unstable = !series.IsStable; + + if (unstable && + 'Status' in series && + series.Status == 'Complete') { + // The series is not tagged as stable by Orthanc, but all the + // expected instances are already available. + unstable = false; + } + + if (unstable) { + $('#unstable').show(); + } + } + }); + + var currentImageIndex = 0; // updates the image display