Mercurial > hg > orthanc-webviewer
changeset 104:83d4afba88ff refactoring
display error messages
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 30 Nov 2015 14:00:28 +0100 |
parents | d5396fcd80bb |
children | fd8c18f62b2c |
files | WebApplication/viewer.js |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 + '<br/>' + volume.SeriesDescription + '<br/>'); } + }, + failure: function() { + alert('Error: This image is not supported by the Web viewer.'); } });