PATH:
home
/
lab2454c
/
costbloc.com
/
public
/
dist
/
js
/
custom
"use strict";($(".main-body .page-wrapper").find("#role-add-container").length||$(".main-body .page-wrapper").find("#role-edit-container").length)&&($(document).on("keyup","#name",function(){if(!1===$("#slug").hasClass("readonly")){var a=this.value.replace(/[&\/\\#@,+()$~%.'":*?<>{}]/g,"");$("#slug").val(a.trim().toLowerCase().replace(/\s/g,"-"))}}),$(document).on("keyup","#slug",function(){if(!1===$(this).hasClass("readonly")){var a=this.value.replace(/[&\/\\#@,+()$~%.'":*?<>{}]/g,"");$("#slug").val(a.trim().toLowerCase().replace(/\s/g,"-"))}})),$(".main-body .page-wrapper").find("#role-list-container").length&&($("#confirmDelete").on("show.bs.modal",function(a){var b=$(a.relatedTarget),c=$(this);$("#confirmDeleteSubmitBtn").attr("data-task","").removeClass("delete-task-btn"),"Delete"==b.data("label")&&(c.find("#confirmDeleteSubmitBtn").addClass("delete-task-btn").attr("data-id",b.data("id")).text(jsLang("Yes, Confirm")).show(),c.find("#confirmDeleteLabel").text(b.data("title")),c.find(".modal-body").text(b.data("message"))),$("#confirmDeleteSubmitBtn").on("click",function(){$("#delete-role-"+$(this).attr("data-id")).trigger("submit")})}),$(document).on("init.dt",function(){$(".btn-group").remove(),$("#dataTableBuilder").removeAttr("style")})),$(".main-body .page-wrapper").find("#permission-list-container").length&&($(".prms-loader").hide(),$(document).on("click",".accordion-toggle",function(){setTimeout(()=>{"true"==$(this).attr("aria-expanded")?($(this).find(".arrow-icon").addClass("fa-minus"),$(this).find(".arrow-icon").removeClass("fa-plus")):($(this).find(".arrow-icon").addClass("fa-plus"),$(this).find(".arrow-icon").removeClass("fa-minus"))},100)}),$(document).on("click",".prms",function(){var a=$(this).find(".p-prms").attr("id"),b=!1;$("#"+a).hasClass("fa-check text-success")&&($("#"+a).removeClass("fa-check text-success"),b=!0),$("#"+a).hasClass("fa-times text-danger")&&$("#"+a).removeClass("fa-times text-danger"),$("#"+a).addClass("fa-spinner prms-loader"),$.ajax({url:SITE_URL+"/assign-permission",type:"POST",data:{_token:token,role_id:$(this).data("role_id"),permission_id:$(this).data("permission_id")},success:function(c){$("#"+a).hasClass("fa-spinner prms-loader")&&$("#"+a).removeClass("fa-spinner prms-loader"),c?b?$("#"+a).addClass("fa-times text-danger"):$("#"+a).addClass("fa-check text-success"):b?$("#"+a).addClass("fa-check text-success"):$("#"+a).addClass("fa-times text-danger")}})}),$(document).on("click",".main-group",function(a){$(a.target).is(".search-table")||($(this).find(".fa-minus").length?($(".sub-group[data-value="+$(this).data("value")+"]").hide("slow"),$(this).attr("aria-expanded",!1),$(".accordian-body").removeClass("show"),$(".sub-group i").removeClass("fa-minus").addClass("fa-plus")):($(".sub-group[data-value="+$(this).data("value")+"]").show("slow"),$(this).attr("aria-expanded",!0)))}),$(".search-table").on("keyup",function(){var a,b,c,d,e,f,g,h=$(this).closest("tr");for(a=$(this).val(),b=a.toUpperCase(),c=$(".myTable"),d=$(".myTable tr[data-value="+$(this).closest("tr").data("value")+"]"),f=0;f<d.length;f++)e=d[f].querySelector(".search"),e&&(g=e.textContent||e.innerText,d[f].style.display=-1<g.toUpperCase().indexOf(b)?"table-row":"none");h.find("i").removeClass("fa-minus").addClass("fa-plus"),$(".sub-group[data-value="+$(this).closest("tr").data("value")+"]").each(function(a,b){"display: table-row;"==$(b).attr("style")&&h.find("i").removeClass("fa-plus").addClass("fa-minus")})}));
[-] 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]