PATH:
home
/
lab2454c
/
costbloc.com
/
Modules
/
CMS
/
Resources
/
assets
/
js
"use strict";$("#pageName").on("keyup",function(){let a=$(this).val().toLowerCase().replace(/ /g,"-").replace(/[^\w-]+/g,"");$("#pageSlug").val(a)});const updateFormFields=(a,b,c)=>{c.forEach(c=>{"val"==c.type?$(a).find(c.id).val(b[c.key]):"prop"==c.type&&$(a).find(c.id).prop("checked",b[c.key]==c.val)})};$(document).on("click",".delete-section-btn",function(){$(".delete-loading").removeClass("d-none"),$("#internal_form").attr("action",deletePageUrl.replace("__id__",tempId)),$("#internal_form").trigger("submit")}),$(document).on("click",".delete-button",function(){tempId=$(this).data("id"),$("#confirmDelete").modal("show")}),$(".default_c").on("change",function(){$(".status_c").is(":checked")||$(this).prop("checked",!1)}),$(".status_c").on("change",function(){$(this).is(":checked")||$(".default_c").prop("checked",!1)}),$(document).on("click",".has-spinner-loader",function(){let a=$(this);0<a.closest("form").length?setTimeout(()=>{let b=a;1>b.closest("form").find(".error").length&&(b.append("<div class=\"spinner-border spinner-border-sm ml-2\" role=\"status\"><span class=\"sr-only\">Loading...</span></div>"),b.addClass("disabled-btn"))},50):($(this).append("<div class=\"spinner-border spinner-border-sm ml-2\" role=\"status\"><span class=\"sr-only\">Loading...</span></div>"),$(this).addClass("disabled-btn"))}),window.onpageshow=function(a){a.persisted&&($(".disabled-btn").removeClass("disabled-btn"),$(".spinner-border").remove())},$(document).on("click",".homepage-container .editable",function(){tempId=$(this).data("id");let a=pages.find(a=>a.id==tempId);updateFormFields(updateForm,a,[{id:"#pageName",type:"val",key:"name"},{id:"#pageSlug",type:"val",key:"slug"},{id:"#switch-1",type:"prop",key:"status",val:"Active"},{id:"#switch-2",type:"prop",key:"default",val:1}]),updateForm.attr("action",updatePageUrl.replace("__id__",tempId)),$("#updatePage").modal("show")}),$(document).on("click",".pages-container .editable",function(){tempId=$(this).data("id");let a=pages.find(a=>a.id==tempId);updateForm.attr("action",updatePageUrl.replace("__id__",tempId)),updateFormFields(updateForm,a,[{id:"#pageName",type:"val",key:"name"},{id:"#pageSlug",type:"val",key:"slug"},{id:"#switch-1",type:"prop",key:"status",val:"Active"}]),$("#updatePage").modal("show")});
[-] slider.js
[edit]
[+]
..
[-] page.js
[edit]
[-] query.min.js
[edit]
[-] app.min.js
[edit]
[-] app.js
[edit]
[-] slider.min.js
[edit]
[-] jquery-ui.js
[edit]
[-] user-custom.js
[edit]
[-] page.min.js
[edit]
[-] builder.min.js
[edit]
[-] query.js
[edit]
[-] builder.js
[edit]
[-] jquery-ui.min.js
[edit]
[-] theme.min.js
[edit]
[-] theme.js
[edit]