summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--public/js/app.js3
-rw-r--r--resources/js/app.js2
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
});