PATH:
home
/
lab2454c
/
costbloc.com
/
public
/
dist
/
js
/
custom
"use strict";if($(".main-body .page-wrapper").find("#preference-settings-container").length&&($(".select").select2(),$(".input-group").css("background-color","white")),$(".main-body .page-wrapper").find("#appearance-settings-container").length){function getNavbarClass(){var navCls=$('input[name="menu_background"]:checked').val();navCls="default"!=navCls?navCls:"";var brandCls=$('input[name="menu_brand_background"]:checked').val();brandCls="default"!=brandCls?brandCls:"";var activeItemCls=$('input[name="menu_item_color"]:checked').val();activeItemCls="default"!=activeItemCls?activeItemCls:"";var navImageCls=$('input[name="navbar_image"]:checked').val();navImageCls="default"!=navImageCls?navImageCls:"";var listIconCls=$('input[name="menu_list_icon"]:checked').val();listIconCls="default"!=listIconCls?listIconCls:"";var themeModeCls=$('input[name="theme_mode"]:checked').val();themeModeCls="default"!=themeModeCls?themeModeCls:"";var dropDownIconCls=$('input[name="menu_dropdown_icon"]:checked').val();dropDownIconCls="default"!=dropDownIconCls?dropDownIconCls:"";var iconColorCls=$('input[name="menu-icon-colored"]').val();iconColorCls=$('input[name="menu-icon-colored"]').is(":checked")?iconColorCls:"";var menuFixedCls=$('input[name="menu-fixed"]').val(),allClasses;return"pcoded-navbar "+navCls+" "+brandCls+" "+activeItemCls+" "+navImageCls+" "+listIconCls+" "+dropDownIconCls+" "+iconColorCls+" "+(menuFixedCls=$('input[name="menu-fixed"]').is(":checked")?menuFixedCls:"")+" "+themeModeCls}$("#reset-appearance").on("click",(function(){$("body, header, nav").removeClass(),$("nav").addClass("pcoded-navbar"),$("header").addClass("navbar pcoded-header navbar-expand-lg"),$("#default_theme, #default_header, #default_menu, #default_menu_brand, #default_menu_item, #navbar_image_none, #menu_list_icon-1, #dropdown_icon-1").prop("checked",!0),$("#menu-icon-colored, #menu-fixed, #header-fixed, #box-layout").prop("checked",!1)})),$('input[name="box-layout"]').on("click",(function(){$("body").toggleClass("container box-layout")})),$('input[name="header_background"], input[name="header-fixed"]').on("click",(function(){var headerCls=$('input[name="header_background"]:checked').val();headerCls="default"!=headerCls?headerCls:"";var headerFixedCls=$('input[name="header-fixed"]').val();headerFixedCls=$('input[name="header-fixed"]').is(":checked")?headerFixedCls:"",$("header").removeClass(),$("header").addClass("navbar pcoded-header navbar-expand-lg "+headerCls+" "+headerFixedCls)})),$('input[name="menu_background"]').on("click",(function(){var navImageBgCls;"default"!=$('input[name="navbar_image"]:checked').val()&&swal({icon:"success",title:jsLang("Please select menu image NONE to work menu background color"),buttons:[!1,jsLang("Ok")]})})),$("#dark_theme").on("click",(function(){swal({icon:"success",title:jsLang("Dark mode will work completely, after saving theme preferences"),buttons:[!1,jsLang("Ok")]})})),$('input[name="menu_background"], input[name="menu_brand_background"], input[name="menu_item_color"], input[name="navbar_image"], input[name="menu_list_icon"], input[name="menu_dropdown_icon"], input[name="menu-icon-colored"], input[name="menu-fixed"], input[name="theme_mode"]').on("click",(function(){$("nav").removeClass(),$("nav").addClass(getNavbarClass())}))}function saveTags(){var items=$("#tags-input").tagsinput("items");items=items.map((function(x){return x.toLowerCase()}));var csrf_token=$('meta[name="csrf-token"]').attr("content");$.ajax({type:"POST",url:SITE_URL+"/extension-store",data:{_token:csrf_token,data:items},dataType:"JSON"})}$("#extension_loading").show(),$(".tagsinput").hide(),$("#extension_action_div").show(),$(".tagsinput").each((function(){$(this).removeAttr("font-family")})),$("#preference_form").on("keypress",(function(e){13==e.keyCode&&(e.preventDefault(),saveTags())})),$(document).ready((function(){$.ajax({type:"GET",url:SITE_URL+"/get-extension-in-ajax",dataType:"json",success:function(data){if($("#extension_loading").hide(),$(".tagsinput").show(),200==data.status)$.each(data.extensions,(function(key,item){$("#tags-input").tagsinput("add",item),$("#tags-input").tagsinput({allowDuplicates:!1})}));else{var unsuccessHtml='<div><label class="text-warning">'+data.extensions+"</label></div>";$("#extension_action_div").hide(),$("#extension_notification").html(unsuccessHtml)}}})})),$("#tags-input").on("beforeItemAdd",(function(event){var alNumRegex;if(/^([a-zA-Z0-9]+)$/.test(event.item))event.cancel=!1;else{var unsuccessHtml='<div class="alert alert-danger alert-dismissible fade show" role="alert"><strong>Extension name not valid</strong><button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button></div>';$("#extension_notification").html(unsuccessHtml).delay(3e3).fadeOut("slow"),event.cancel=!0}}));
[-] 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]