From fa1a8ffcb25522edea08874afbd7f3bbc6e1f733 Mon Sep 17 00:00:00 2001 From: horus Date: Sat, 19 Sep 2020 02:19:15 +0200 Subject: minor bugfix --- public/js/app.js | 3 +-- resources/js/app.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/public/js/app.js b/public/js/app.js index 99c1139..d822d11 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -37076,9 +37076,8 @@ __webpack_require__(/*! ./bootstrap */ "./resources/js/bootstrap.js"); $(".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 }); /***/ }), 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