# HG changeset patch # User Sebastien Jodogne # Date 1448888428 -3600 # Node ID 83d4afba88ff29b29206573f1f2d1746f949f137 # Parent d5396fcd80bb5f9aa29f7b9e71213a01c4a8774d display error messages diff -r d5396fcd80bb -r 83d4afba88ff WebApplication/viewer.js --- a/WebApplication/viewer.js Mon Nov 30 12:04:23 2015 +0100 +++ b/WebApplication/viewer.js Mon Nov 30 14:00:28 2015 +0100 @@ -324,6 +324,7 @@ result = image; }, error: function() { + alert('Error: This image is not supported by the Web viewer.'); return null; } }); @@ -368,6 +369,9 @@ volume.StudyDescription + '
' + volume.SeriesDescription + '
'); } + }, + failure: function() { + alert('Error: This image is not supported by the Web viewer.'); } });