blob: e1d3831c5b95417cca6204fc975f0a8d71f02d37 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
declare function loadKhatian(): void;
document.addEventListener("DOMContentLoaded", () => {
const proxiedPost = $.post;
$.post = function() {
if (arguments[0].startsWith("khDetailsAction_LandInfo.action")) {
const callback = arguments[2];
arguments[2] = (data: any) => {
callback(data);
const tableElement = document.querySelector("#khdetails > table > tbody > tr > td:nth-child(1) > div:nth-child(5) > table > tbody") as HTMLElement | null;
if (tableElement) {
tableElement.style.height = "auto";
tableElement.style.width = "100%";
}
}
}
return proxiedPost.apply(this, Array.from(arguments) as any);
}
});
|