From fa1a8ffcb25522edea08874afbd7f3bbc6e1f733 Mon Sep 17 00:00:00 2001 From: horus Date: Sat, 19 Sep 2020 02:19:15 +0200 Subject: minor bugfix --- resources/js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'resources/js') diff --git a/resources/js/app.js b/resources/js/app.js index 37e0fdb..4e2e7f6 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -3,6 +3,6 @@ require('./bootstrap'); $(".mal-img").not(".mal-img-error").on("error", function() { if ( ! $(this).hasClass("mal-img-error") ) { this.src = $(this).data("img-src"); + $(this).addClass('mal-img-error'); // prevents loops } - $(this).addClass('mal-img-error'); // prevents loops }); -- cgit v1.2.3