changeset 3:ca16691db433

simplification
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 26 Feb 2015 11:39:28 +0100
parents c919d488471f
children ecefd45026bf
files WebApplication/viewer.js
diffstat 1 files changed, 2 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/WebApplication/viewer.js	Thu Feb 26 11:35:04 2015 +0100
+++ b/WebApplication/viewer.js	Thu Feb 26 11:39:28 2015 +0100
@@ -391,17 +391,8 @@
     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) {
+      if (!series.IsStable && 
+          series.Status != 'Complete') {
         $('#unstable').show();
       }
     }