diff --git a/app/js/ui/img.js b/app/js/ui/img.js index 17a8994f..702d53a7 100644 --- a/app/js/ui/img.js +++ b/app/js/ui/img.js @@ -102,6 +102,13 @@ function imageXhr(id, key, murl) { }, false ) + xhr.addEventListener( + 'error', + function(event) { + $('#imgmodal').attr('src', murl) + }, + false + ) xhr.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { r = new FileReader()