diff options
Diffstat (limited to 'src/scripts')
| -rw-r--r-- | src/scripts/functionality/view-khatian/download-information-pdf-page-content.ts (renamed from src/scripts/functionality/view-khatian/download-document-content.ts) | 24 | ||||
| -rw-r--r-- | src/scripts/functionality/view-khatian/index.ts | 4 |
2 files changed, 11 insertions, 17 deletions
diff --git a/src/scripts/functionality/view-khatian/download-document-content.ts b/src/scripts/functionality/view-khatian/download-information-pdf-page-content.ts index 249e2b1..9ff18ec 100644 --- a/src/scripts/functionality/view-khatian/download-document-content.ts +++ b/src/scripts/functionality/view-khatian/download-information-pdf-page-content.ts @@ -75,8 +75,12 @@ export default (isPlotInformation: boolean, details: string, { district, block, border-right: 0 !important; } - .details#plot-information > div:nth-child(2) { - display: none; + .details#plot-information > div:nth-child(2), + .details#plot-information > div:nth-child(1) > div:nth-child(3) > table > tbody > tr > td:nth-child(4), + .details#plot-information > div:nth-child(1) > div:nth-child(3) > table > tbody > tr > th:nth-child(4), + .details#khatian-information > table > tbody > tr > td:nth-child(1) > p:nth-child(3), + .details#khatian-information > table > tbody > tr > td:nth-child(2) { + display: none !important; } .details#plot-information > div:nth-child(1) > div:nth-child(5) > table > tbody > tr { @@ -88,10 +92,6 @@ export default (isPlotInformation: boolean, details: string, { district, block, width: 100% !important; } - .details#khatian-information > table > tbody > tr > td:nth-child(2) { - display: none; - } - .details#khatian-information > table > tbody > tr > td:nth-child(1) > div:nth-child(1), .details#khatian-information > table > tbody > tr > td:nth-child(1) > p:nth-child(4) { text-align: center; @@ -154,10 +154,9 @@ export default (isPlotInformation: boolean, details: string, { district, block, border-color: black !important; } - .details#khatian-information > table > tbody > tr > td:nth-child(1) > div:nth-child(5) > table > tbody > tr:last-child { - border: none !important; - } - + .details#khatian-information > table > tbody > tr > td:nth-child(1) > div:nth-child(5) > table > tbody > tr:last-child, + .details#plot-information > div:nth-child(1) > div:nth-child(3) > table > tbody > tr > td:nth-child(3), + .details#plot-information > div:nth-child(1) > div:nth-child(3) > table > tbody > tr > th:nth-child(3), .details#khatian-information > table tbody tr tr th:last-child, .details table tbody tr tr td:last-child, #locater-information tr > td:last-child { border-right: none !important; @@ -176,10 +175,6 @@ export default (isPlotInformation: boolean, details: string, { district, block, width: 100% !important; } - .details#khatian-information > table > tbody > tr > td:nth-child(1) > p:nth-child(3) { - display: none; - } - .details#khatian-information > table > tbody > tr > td:nth-child(1) > div:nth-child(2) > table > tbody > tr:nth-child(1) > th { width: 50%; } @@ -211,7 +206,6 @@ export default (isPlotInformation: boolean, details: string, { district, block, tableBodyElement = document.createElement("tbody"); tableElement.appendChild(tableBodyElement); const detailsElement = document.querySelector("#plot-information > div:nth-child(1)"); - console.log(detailsElement.querySelector("div:nth-child(2)")); detailsElement.insertBefore(tableElement, detailsElement.querySelector("div:nth-child(2)")); ` : ` diff --git a/src/scripts/functionality/view-khatian/index.ts b/src/scripts/functionality/view-khatian/index.ts index 0cb3947..e29e8a4 100644 --- a/src/scripts/functionality/view-khatian/index.ts +++ b/src/scripts/functionality/view-khatian/index.ts @@ -1,5 +1,5 @@ import { downloadPDF } from "@/shared/download-pdf"; -import getDetailsPDFContent from "@/scripts/functionality/view-khatian/download-document-content"; +import getDownloadInformationPDFPageContent from "@/scripts/functionality/view-khatian/download-information-pdf-page-content"; declare function load(): void; @@ -27,7 +27,7 @@ document.addEventListener("DOMContentLoaded", () => { const downloadInformationPDF = () => { let contentElement = document.getElementById(isPlotInformation ? "plotdetails" : "khdetails"); - const documentStringContent = getDetailsPDFContent(!!isPlotInformation, contentElement!.innerHTML, { + const documentStringContent = getDownloadInformationPDFPageContent(!!isPlotInformation, contentElement!.innerHTML, { district: getValueOfSelectElement("#lstDistrictCode1"), block: getValueOfSelectElement("#lstBlockCode1"), mouza: getValueOfSelectElement("#lstMouzaList") |
