Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
Default theme - minor fix - Account.OutOfStockSubscriptions - click checkbox select all
KrzysztofPajak8ec1e3568007
diff --git a/src/Web/Grand.Web/Views/OutOfStockSubscription/CustomerSubscriptions.cshtml b/src/Web/Grand.Web/Views/OutOfStockSubscription/CustomerSubscriptions.cshtmlindex 6162e3288..57b8f0fc4 100644--- a/src/Web/Grand.Web/Views/OutOfStockSubscription/CustomerSubscriptions.cshtml+++ b/src/Web/Grand.Web/Views/OutOfStockSubscription/CustomerSubscriptions.cshtml@@ -21,12 +21,10 @@<script asp-location="Footer">document.addEventListener("DOMContentLoaded", function () {document.getElementById('selectall').addEventListener('click', function () {- document.querySelector('.subscription-list .rowcheckbox').setAttribute('checked', this.getAttribute('checked'));- });- document.querySelector('.subscription-list .rowcheckbox').addEventListener('change', function (e) {- var numChkBoxes = document.querySelector('.subscription-list .rowcheckbox').length;- var numChkBoxesChecked = document.querySelector('.subscription-list .rowcheckbox:checked').length;- document.getElementById('selectall').setAttribute('checked', numChkBoxes == numChkBoxesChecked && numChkBoxes > 0);+ var checked = document.getElementById("selectall").checked;+ document.querySelectorAll('.subscription-list .rowcheckbox').forEach(function (el) {+ el.checked = checked;+ });});});</script>