diff --git a/mayan/apps/appearance/static/appearance/js/mayan_image.js b/mayan/apps/appearance/static/appearance/js/mayan_image.js index f146b4b279..a3d7c47108 100644 --- a/mayan/apps/appearance/static/appearance/js/mayan_image.js +++ b/mayan/apps/appearance/static/appearance/js/mayan_image.js @@ -49,15 +49,10 @@ MayanImage.intialize = function () { }); } +MayanImage.templateInvalidDocument = $('#template-invalid-document').html(); + MayanImage.prototype.onImageError = function () { - this.element.parent().parent().html('\ -
\ - \ - \ - \ - \ -
\ - ') + this.element.parent().parent().html(MayanImage.templateInvalidDocument); // Remove border to indicate non interactive image this.element.removeClass('thin_border'); diff --git a/mayan/apps/appearance/templates/appearance/root.html b/mayan/apps/appearance/templates/appearance/root.html index d9034b6193..0ac8e7c730 100644 --- a/mayan/apps/appearance/templates/appearance/root.html +++ b/mayan/apps/appearance/templates/appearance/root.html @@ -117,6 +117,26 @@ + + + +