Mercurial > hg > orthanc-webviewer
comparison WebApplication/viewer.js @ 104:83d4afba88ff refactoring
display error messages
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 30 Nov 2015 14:00:28 +0100 |
parents | 46ec13a1177c |
children | 3809121c3290 |
comparison
equal
deleted
inserted
replaced
103:d5396fcd80bb | 104:83d4afba88ff |
---|---|
322 } | 322 } |
323 | 323 |
324 result = image; | 324 result = image; |
325 }, | 325 }, |
326 error: function() { | 326 error: function() { |
327 alert('Error: This image is not supported by the Web viewer.'); | |
327 return null; | 328 return null; |
328 } | 329 } |
329 }); | 330 }); |
330 | 331 |
331 var deferred = $.Deferred(); | 332 var deferred = $.Deferred(); |
366 $('#topright').html(volume.PatientID + '<br/>' + | 367 $('#topright').html(volume.PatientID + '<br/>' + |
367 volume.PatientName + '<br/>' + | 368 volume.PatientName + '<br/>' + |
368 volume.StudyDescription + '<br/>' + | 369 volume.StudyDescription + '<br/>' + |
369 volume.SeriesDescription + '<br/>'); | 370 volume.SeriesDescription + '<br/>'); |
370 } | 371 } |
372 }, | |
373 failure: function() { | |
374 alert('Error: This image is not supported by the Web viewer.'); | |
371 } | 375 } |
372 }); | 376 }); |
373 | 377 |
374 if (instances.length == 0) | 378 if (instances.length == 0) |
375 { | 379 { |