From aa7d86dbf28ece5a90c3848262d6a75b45370cfe Mon Sep 17 00:00:00 2001 From: Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> Date: Sun, 28 Jul 2024 09:49:26 +0530 Subject: Added ability to download mouza maps. Fixed view khatian and plot information download. --- .../view-khatian/download-information-pdf-page-content.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/scripts/functionality/view-khatian/download-information-pdf-page-content.html') diff --git a/src/scripts/functionality/view-khatian/download-information-pdf-page-content.html b/src/scripts/functionality/view-khatian/download-information-pdf-page-content.html index 44ced4f..668c36a 100644 --- a/src/scripts/functionality/view-khatian/download-information-pdf-page-content.html +++ b/src/scripts/functionality/view-khatian/download-information-pdf-page-content.html @@ -211,7 +211,8 @@ } -
$details$
+ +
$details$
@@ -229,20 +230,21 @@ }; if ($isPlotInformation$) { + document.querySelector(".details").setAttribute("id", "plot-information"); const tableElement = document.createElement("table"); tableElement.setAttribute("id", "locater-information"); tableBodyElement = document.createElement("tbody"); tableElement.appendChild(tableBodyElement); - const detailsElement = document.querySelector("#plot-information > div:nth-child(1)"); + const detailsElement = document.querySelector(".details > div:nth-child(1)"); detailsElement.insertBefore(tableElement, detailsElement.querySelector("div:nth-child(2)")); } else { + document.querySelector(".details").setAttribute("id", "khatian-information"); tableBodyElement = document.querySelector(".details > table > tbody > tr > td:nth-child(1) > div:nth-child(2) > table > tbody"); } createTableEntry("\u{99C}\u{9C7}\u{9B2}\u{9BE} (District):", "$district$"); createTableEntry("\u{9AC}\u{9CD}\u{9B2}\u{995} (Block):", "$block$"); createTableEntry("\u{9AE}\u{9CC}\u{99C}\u{9BE} (Mouza):", "$mouza$"); - Promise.all( Array.from(document.images) .filter(img => !img.complete).map(img => new Promise(resolve => { -- cgit v1.2.3