Files
Konfirmsibank/public/assets/js/custom/apps/customers/view/statement.js
2023-09-07 11:44:29 +07:00

2 lines
1.5 KiB
JavaScript

"use strict";var KTCustomerViewStatements={init:function(){!function(){const e="#kt_customer_view_statement_table_1";document.querySelector(e).querySelectorAll("tbody tr").forEach((e=>{const t=e.querySelectorAll("td"),r=moment(t[0].innerHTML,"DD MMM YYYY, LT").format();t[0].setAttribute("data-order",r)})),$(e).DataTable({info:!1,order:[],pageLength:10,lengthChange:!1,columnDefs:[{orderable:!1,targets:4}]})}(),function(){const e="#kt_customer_view_statement_table_2";document.querySelector(e).querySelectorAll("tbody tr").forEach((e=>{const t=e.querySelectorAll("td"),r=moment(t[0].innerHTML,"DD MMM YYYY, LT").format();t[0].setAttribute("data-order",r)})),$(e).DataTable({info:!1,order:[],pageLength:10,lengthChange:!1,columnDefs:[{orderable:!1,targets:4}]})}(),function(){const e="#kt_customer_view_statement_table_3";document.querySelector(e).querySelectorAll("tbody tr").forEach((e=>{const t=e.querySelectorAll("td"),r=moment(t[0].innerHTML,"DD MMM YYYY, LT").format();t[0].setAttribute("data-order",r)})),$(e).DataTable({info:!1,order:[],pageLength:10,lengthChange:!1,columnDefs:[{orderable:!1,targets:4}]})}(),function(){const e="#kt_customer_view_statement_table_4";document.querySelector(e).querySelectorAll("tbody tr").forEach((e=>{const t=e.querySelectorAll("td"),r=moment(t[0].innerHTML,"DD MMM YYYY, LT").format();t[0].setAttribute("data-order",r)})),$(e).DataTable({info:!1,order:[],pageLength:10,lengthChange:!1,columnDefs:[{orderable:!1,targets:4}]})}()}};KTUtil.onDOMContentLoaded((function(){KTCustomerViewStatements.init()}));