Mercurial > hg > orthanc-webviewer
comparison WebApplication/viewer.js @ 3:ca16691db433
simplification
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 26 Feb 2015 11:39:28 +0100 |
parents | c919d488471f |
children | ecefd45026bf |
comparison
equal
deleted
inserted
replaced
2:c919d488471f | 3:ca16691db433 |
---|---|
389 url: '../../series/' + series, | 389 url: '../../series/' + series, |
390 dataType: 'json', | 390 dataType: 'json', |
391 cache: false, | 391 cache: false, |
392 async: true, | 392 async: true, |
393 success: function(series) { | 393 success: function(series) { |
394 var unstable = !series.IsStable; | 394 if (!series.IsStable && |
395 | 395 series.Status != 'Complete') { |
396 if (unstable && | |
397 'Status' in series && | |
398 series.Status == 'Complete') { | |
399 // The series is not tagged as stable by Orthanc, but all the | |
400 // expected instances are already available. | |
401 unstable = false; | |
402 } | |
403 | |
404 if (unstable) { | |
405 $('#unstable').show(); | 396 $('#unstable').show(); |
406 } | 397 } |
407 } | 398 } |
408 }); | 399 }); |
409 | 400 |