/home/techb158/immovalet.com/platform/plugins/ecommerce/public/js
NameSizeModeActions
avatar.js1979810644editdlrm
change-product-swatches.js26290644editdlrm
checkout.js1818170644editdlrm
currencies.js26680644editdlrm
customer.js2870644editdlrm
discount.js1232110644editdlrm
ecommerce-product-attributes.js40520644editdlrm
edit-product.js194500644editdlrm
flash-sale.js30430644editdlrm
order-create.js2078760644editdlrm
order-incomplete.js15450644editdlrm
order.js91110644editdlrm
payment-method.js28000644editdlrm
product-category.js47860644editdlrm
report.js4760644editdlrm
review.js670644editdlrm
setting.js6150644editdlrm
shipment.js13770644editdlrm
shipping.js96640644editdlrm
store-locator.js32450644editdlrm
utilities.js3340644editdlrm
Edit: /home/techb158/immovalet.com/platform/plugins/ecommerce/public/js/store-locator.js (3245B)
(()=>{function o(o,t){for(var e=0;e *"),o.removeClass("button-loading"),o.closest(".modal.fade").modal("hide"))},error:function(t){Botble.handleError(t),o.removeClass("button-loading")}})};$(document).on("click","#add-store-locator-button",(function(t){t.preventDefault(),o($(t.currentTarget))})),$(document).on("click","#update-store-locator-button",(function(t){t.preventDefault(),o($(t.currentTarget))})),$(document).on("click",".btn-trigger-delete-store-locator",(function(o){o.preventDefault(),$("#delete-store-locator-button").data("target",$(o.currentTarget).data("target")),$("#delete-store-locator-modal").modal("show")})),$(document).on("click","#delete-store-locator-button",(function(o){o.preventDefault();var t=$(o.currentTarget);t.addClass("button-loading"),$.ajax({type:"POST",cache:!1,url:t.data("target"),success:function(o){o.error?(Botble.showError(o.message),t.removeClass("button-loading")):(Botble.showSuccess(o.message),$(".store-locator-wrap").load(window.location.href+" .store-locator-wrap > *"),t.removeClass("button-loading"),t.closest(".modal.fade").modal("hide"))},error:function(o){Botble.handleError(o),t.removeClass("button-loading")}})})),$(document).on("click","#change-primary-store-locator-button",(function(o){o.preventDefault();var t=$(o.currentTarget);t.addClass("button-loading"),$.ajax({type:"POST",cache:!1,url:t.closest(".modal-content").find("form").prop("action"),data:t.closest(".modal-content").find("form").serialize(),success:function(o){o.error?(Botble.showError(o.message),t.removeClass("button-loading")):(Botble.showSuccess(o.message),$(".store-locator-wrap").load(window.location.href+" .store-locator-wrap > *"),t.removeClass("button-loading"),t.closest(".modal.fade").modal("hide"))},error:function(o){Botble.handleError(o),t.removeClass("button-loading")}})}))}}])&&o(e.prototype,a),t}();$(document).ready((function(){(new t).init()}))})();