PATH:
home
/
lab2454c
/
costbloc.com
/
public
/
dist
/
js
/
custom
"use strict";var obj={coupons:["calculate_coupon"],reviews_enable_product_review:["reviews_verified_owner_label","review_left","rating_enable"],rating_enable:["rating_required"],manage_stock:["out_of_stock_visibility","stock_threshold","notification_out_of_stock","notification_low_stock","hold_stock"],is_active:["is_category_based","amount"]};function checkDependency(){for(const e in obj)if($("#"+e).attr("checked"))for(const t in obj[e])$("#"+obj[e][t]).closest(".dependency").slideDown(400);else for(const n in obj[e])$("#"+obj[e][n]).closest(".dependency").slideUp(400)}checkDependency(),$(".checkActivity").on("change",function(){$(this).attr("checked")?$(this).removeAttr("checked"):$(this).attr("checked",!0),checkDependency()}),$(".conditional").ifs(),$(".warningMessage").css("display","none"),$("#v-pills-general-tab").trigger("click"),$("input").on("change",function(){$(this).closest(".parent").find(".warning-message").addClass("alert-secondary"),$(this).closest(".parent").find(".warningMessage").slideDown(300),$(this).closest(".parent").find("#warning-msg").html(jsLang("Settings have changed, you should save them!"))}),$(".tab-name").on("click",function(){var e=$(this).attr("data-id");$("#theme-title").html(e)}),$(".product_setting_form").on("submit",function(e){e.preventDefault(),$(this).find("button.save-button").attr("type","submit").addClass("cursor_not_allowed").find(".product-spinner").removeClass("d-none");var e=$(this).attr("action"),t=this;$.ajax({url:e,type:"POST",data:$(this).serialize(),success:function(e){"success"==e.status?$(t).closest(".parent").find(".abc").addClass("alert-success"):$(t).closest(".parent").find(".abc").addClass("alert-danger"),$(t).closest(".parent").find(".warningMessage").css("display","block"),$(t).closest(".parent").find(".msg").html(e.message),$(t).find("button.save-button").attr("type","submit").removeClass("cursor_not_allowed").find(".product-spinner").addClass("d-none")},error:function(e){$(t).find("button.save-button").attr("type","submit").removeClass("cursor_not_allowed").find(".product-spinner").addClass("d-none")}}),setTimeout(()=>{$(t).closest(".parent").find(".warningMessage").slideUp(500),setTimeout(()=>{$(t).closest(".parent").find(".abc").removeClass("alert-success"),$(t).closest(".parent").find(".abc").removeClass("alert-danger")},501)},5e3)});var currentUrl=window.location.href,splitUrl=currentUrl.split("#"),fragment=splitUrl[splitUrl.length-1],fragmentValue={vendor:"v-pills-vendor-tab",inventory:"v-pills-inventory-tab",general:"v-pills-general-tab"};for(const j in fragmentValue)if(j==fragment){$("#"+fragmentValue[j]).trigger("click");break}$("#rating_enable").on("click",function(){$("#rating_required").prop("checked",$(this).is(":checked"))});
[-] create-product.min.js
[edit]
[-] refund.js
[edit]
[-] shops.js
[edit]
[-] commission.min.js
[edit]
[-] user.min.js
[edit]
[-] installer.js
[edit]
[-] category.min.js
[edit]
[+]
site
[-] jquery.blockUI.js
[edit]
[-] category.js
[edit]
[-] create-product.js
[edit]
[-] refund.min.js
[edit]
[+]
..
[-] shipping.min.js
[edit]
[-] user.js
[edit]
[-] jquery.blockUI.min.js
[edit]
[-] option.min.js
[edit]
[-] users-activity-list.js
[edit]
[-] attribute.min.js
[edit]
[-] email-configuration.min.js
[edit]
[-] dashboard.js
[edit]
[-] order.min.js
[edit]
[-] delete-modal.js
[edit]
[-] withdrawal.js
[edit]
[-] product-setting.js
[edit]
[-] validation.js
[edit]
[-] vendors.min.js
[edit]
[-] shops.min.js
[edit]
[-] roles.js
[edit]
[-] review.js
[edit]
[-] common.min.js
[edit]
[-] geolocale-suggestion.min.js
[edit]
[-] custom-category.js
[edit]
[-] product.js
[edit]
[-] order-invoice.min.js
[edit]
[-] common.js
[edit]
[-] product_list.js
[edit]
[-] settings.js
[edit]
[-] permission.min.js
[edit]
[-] coupon.js
[edit]
[-] export.js
[edit]
[-] yajra-custom.min.js
[edit]
[-] users-activity-list.min.js
[edit]
[-] finance.min.js
[edit]
[-] geolocale-suggestion.js
[edit]
[-] option.js
[edit]
[-] newsletter.min.js
[edit]
[-] order.js
[edit]
[-] role-permission.js
[edit]
[-] brand.min.js
[edit]
[-] transaction.js
[edit]
[-] popup.min.js
[edit]
[-] validation.min.js
[edit]
[-] templates.min.js
[edit]
[-] attribute.js
[edit]
[-] brand.js
[edit]
[-] app-layout.js
[edit]
[-] preference.js
[edit]
[-] invoice.js
[edit]
[-] order-invoice.js
[edit]
[-] yajra-export.js
[edit]
[-] product-setting.min.js
[edit]
[-] yajra-custom.js
[edit]
[-] installer.min.js
[edit]
[-] invoice.min.js
[edit]
[-] product_list.min.js
[edit]
[-] email-configuration.js
[edit]
[-] custom-category.min.js
[edit]
[-] settings.min.js
[edit]
[-] yajra-export.min.js
[edit]
[-] withdrawal.min.js
[edit]
[-] payment.js
[edit]
[-] preference.min.js
[edit]
[-] roles.min.js
[edit]
[-] finance.js
[edit]
[-] app-layout.min.js
[edit]
[-] permission.js
[edit]
[-] transaction.min.js
[edit]
[-] popup.js
[edit]
[-] order_status.min.js
[edit]
[-] commission.js
[edit]
[-] coupon.min.js
[edit]
[-] shipping.js
[edit]
[-] review.min.js
[edit]
[-] templates.js
[edit]
[-] delete-modal.min.js
[edit]
[-] vendors.js
[edit]
[-] order_status.js
[edit]
[-] dashboard.min.js
[edit]
[-] newsletter.js
[edit]
[-] product.min.js
[edit]
[-] export.min.js
[edit]