From feac7acb91a78b117241abdd0a5d80f778e15f06 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> Date: Fri, 24 Mar 2023 11:36:54 +0530 Subject: Overriding the javascript on the page instead of locally replacing it. --- src/scripts/stop-blocking.js | 1164 ------------------------------------------ 1 file changed, 1164 deletions(-) delete mode 100644 src/scripts/stop-blocking.js (limited to 'src/scripts/stop-blocking.js') diff --git a/src/scripts/stop-blocking.js b/src/scripts/stop-blocking.js deleted file mode 100644 index e1a3ce2..0000000 --- a/src/scripts/stop-blocking.js +++ /dev/null @@ -1,1164 +0,0 @@ -let contextPath = "/BanglarBhumi"; -let currentTheme = ""; -let carrerData = ""; -let previousTheme = ""; -let menuHeader = ""; -let user = ""; -let user_type = ""; -let beforeLoginModal = ""; -let afterLoginModal = ""; -let afterLoginDiv = ""; -let beforeLoginDiv = ""; -let afterLoginLabel = ""; -let btngriv = ""; -let modal1 = ""; -let btn = ""; -let span = ""; - -document.oncontextmenu = new Function("return true"); -$(document).keydown(() => true); -$(document).ready(() => { - switch_style(currentTheme); - if (currentTheme == "black") { - $(".dark").show(); - $(".light").hide(); - } else { - $(".dark").hide(); - $(".light").show(); - } - len = menuHeader.length; - let fullMenu = ""; - for (let i = 0; i < len; i++) { - const c1 = menuHeader.charAt(i); - if (c1 == "[" || c1 == "]") { - } else { - fullMenu = fullMenu + c1; - } - } - const arrayHeader = fullMenu.split(","); - $.each(arrayHeader, (i) => { - const m = arrayHeader[i].trim(); - $("#" + m).css("display", "block"); - }); - $(".light").click((event) => { - $(".light").hide(); - $(".dark").show(); - }); - $(".dark").click((event) => { - $(".light").show(); - $(".dark").hide(); - $.post( - "getPrethemeName.action", - {}, - (data) => { - previousTheme = data.preTheme; - switch_style(previousTheme); - }, - "json" - ); - return false; - }); - $("input[name=theme]").click((event) => { - $(".light").show(); - $(".dark").hide(); - return false; - }); - if (carrerData == "Y") { - $(".badge").show(); - } else { - $(".badge").hide(); - } -}); - -window.homePage = () => { - window.location.href = contextPath + "/Home.action"; -} - -window.ProfilePage = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/Profile.action"); - $("#form_MainMenuPage").submit(); -} - -window.AdministrativePage = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/Administrative.action"); - $("#form_MainMenuPage").submit(); -} - -window.RefugeeReliefRehabilationPage = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/RefugeeReliefRehabilation.action"); - $("#form_MainMenuPage").submit(); -} - -window.AgricultureCensusPage = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/AgricultureCensus.action"); - $("#form_MainMenuPage").submit(); -} - -window.LandPolicyBranchPage = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/LandPolicyBranch.action"); - $("#form_MainMenuPage").submit(); -} - -window.LRISBranchPage = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/LRISBranch.action"); - $("#form_MainMenuPage").submit(); -} - -window.RentControlPage = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/rent.action"); - $("#form_MainMenuPage").submit(); -} - -window.ThikaPage = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/Thika.action"); - $("#form_MainMenuPage").submit(); -} - -window.IndoBanglaPage = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/IndoBangla.action"); - $("#form_MainMenuPage").submit(); -} - -window.StateLandUseBoardPage = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/StateLandUseBoard.action"); - $("#form_MainMenuPage").submit(); -} - -window.GEMBranchPage = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/GEMBranch.action"); - $("#form_MainMenuPage").submit(); -} - -window.RequisitionBranchPage = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/RequisitionBranch.action"); - $("#form_MainMenuPage").submit(); -} - -window.MMBbranchPage = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/MMBbranchPage.action"); - $("#form_MainMenuPage").submit(); -} - -window.SurveySetelmentBranchPage = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/SurveySetelmentBranch.action"); - $("#form_MainMenuPage").submit(); -} - -window.CitizenCentricServicesPage = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/CitizenCentricServices.action"); - $("#form_MainMenuPage").submit(); -} - -window.ARTIPage = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/ARTI.action"); - $("#form_MainMenuPage").submit(); -} - -window.LMTCPage = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/LMTC.action"); - $("#form_MainMenuPage").submit(); -} - -window.EstablishmentPage = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/Establishment.action"); - $("#form_MainMenuPage").submit(); -} - -window.LawBranch = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/LawBranch.action"); - $("#form_MainMenuPage").submit(); -} - -window.DistributionLandPage = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/DistributionLand.action"); - $("#form_MainMenuPage").submit(); -} - -window.ManagementISUPage = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/ManagementISU.action"); - $("#form_MainMenuPage").submit(); -} - -window.KeyPersonnelPage = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/KeyPersonnel.action"); - $("#form_MainMenuPage").submit(); -} - -window.LandReformPage = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/LandReform.action"); - $("#form_MainMenuPage").submit(); -} - -window.DigitisationMapRecordsPage = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/DigitisationMapRecords.action"); - $("#form_MainMenuPage").submit(); -} - -window.LandManagementPage = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/LandManagement.action"); - $("#form_MainMenuPage").submit(); -} - -window.PreparationUpdationMaintenancePage = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/PreparationUpdationMaintenance.action"); - $("#form_MainMenuPage").submit(); -} - -window.challanGeneratePage = () => { - if (user == "") { - $.post( - "putTargetMenuActionName.action", - { - message: "challanGenerate", - ajax: "true", - }, - (data) => {}, - "json" - ); - $.post("viewLoginAreaAction", (html) => { - $("#login-modal .loginmodal-container").html(html); - DrawLoginCaptcha(); - $("#login-modal").modal("show"); - }); - afterLoginModal.style.display = "none"; - afterLoginDiv.style.display = "none"; - afterLoginLabel.style.display = "none"; - beforeLoginModal.style.display = "none"; - } else { - $("#form_MainMenuPage").attr( - "action", - contextPath + "/challanGenerate.action" - ); - $("#form_MainMenuPage").submit(); - } -} - -window.challanReprintPage = () => { - if (user == "") { - $.post( - "putTargetMenuActionName.action", - { - message: "challanReprint", - ajax: "true", - }, - (data) => {}, - "json" - ); - $.post("viewLoginAreaAction", (html) => { - $("#login-modal .loginmodal-container").html(html); - DrawLoginCaptcha(); - $("#login-modal").modal("show"); - }); - afterLoginModal.style.display = "none"; - afterLoginDiv.style.display = "none"; - afterLoginLabel.style.display = "none"; - beforeLoginModal.style.display = "none"; - } else { - $("#form_MainMenuPage").attr( - "action", - contextPath + "/challanReprint.action" - ); - $("#form_MainMenuPage").submit(); - } -} - -window.knowYourPropertyPage = () => { - if (user == "") { - $.post( - "putTargetMenuActionName.action", - { - message: "KnowYourProperty", - ajax: "true", - }, - (data) => {}, - "json" - ); - $.post("viewLoginAreaAction", (html) => { - $("#login-modal .loginmodal-container").html(html); - DrawLoginCaptcha(); - $("#login-modal").modal("show"); - }); - afterLoginModal.style.display = "none"; - afterLoginDiv.style.display = "none"; - afterLoginLabel.style.display = "none"; - beforeLoginModal.style.display = "none"; - } else { - $("#form_MainMenuPage").attr( - "action", - contextPath + "/KnowYourProperty.action" - ); - $("#form_MainMenuPage").submit(); - } -} - -window.serviceStatusLocWise = () => { - if (user == "") { - $.post( - "putTargetMenuActionName.action", - { - message: "SerivceStatusLocationWise", - ajax: "true", - }, - (data) => {}, - "json" - ); - $.post("viewLoginAreaAction", (html) => { - $("#login-modal .loginmodal-container").html(html); - DrawLoginCaptcha(); - $("#login-modal").modal("show"); - }); - afterLoginModal.style.display = "none"; - afterLoginDiv.style.display = "none"; - afterLoginLabel.style.display = "none"; - beforeLoginModal.style.display = "none"; - } else { - $("#form_MainMenuPage").attr( - "action", - contextPath + "/SerivceStatusLocationWise.action" - ); - $("#form_MainMenuPage").submit(); - } -} - -window.MuteApplicationPage = () => { - if (user == "") { - $.post( - "putTargetMenuActionName.action", - { - message: "MuteApplication", - ajax: "true", - }, - (data) => {}, - "json" - ); - $.post("viewLoginAreaAction", (html) => { - $("#login-modal .loginmodal-container").html(html); - DrawLoginCaptcha(); - $("#login-modal").modal("show"); - }); - afterLoginModal.style.display = "none"; - afterLoginDiv.style.display = "none"; - afterLoginLabel.style.display = "none"; - beforeLoginModal.style.display = "none"; - } else { - $("#form_MainMenuPage").attr( - "action", - contextPath + "/MuteApplication.action" - ); - $("#form_MainMenuPage").submit(); - } -} - -window.RORReqPage = () => { - if (user == "") { - $.post( - "putTargetMenuActionName.action", - { - message: "RORReq", - ajax: "true", - }, - (data) => {}, - "json" - ); - $.post("viewLoginAreaAction", (html) => { - $("#login-modal .loginmodal-container").html(html); - DrawLoginCaptcha(); - $("#login-modal").modal("show"); - }); - afterLoginModal.style.display = "none"; - afterLoginDiv.style.display = "none"; - afterLoginLabel.style.display = "none"; - beforeLoginModal.style.display = "none"; - } else { - $("#form_MainMenuPage").attr("action", contextPath + "/RORReq.action"); - $("#form_MainMenuPage").submit(); - } -} - -window.PIReqPage = () => { - if (user == "") { - $.post( - "putTargetMenuActionName.action", - { - message: "PIReq", - ajax: "true", - }, - (data) => {}, - "json" - ); - $.post("viewLoginAreaAction", (html) => { - $("#login-modal .loginmodal-container").html(html); - DrawLoginCaptcha(); - $("#login-modal").modal("show"); - }); - afterLoginModal.style.display = "none"; - afterLoginDiv.style.display = "none"; - afterLoginLabel.style.display = "none"; - beforeLoginModal.style.display = "none"; - } else { - $("#form_MainMenuPage").attr("action", contextPath + "/PIReq.action"); - $("#form_MainMenuPage").submit(); - } -} - -window.PlotMapReqPage = () => { - if (user == "") { - $.post( - "putTargetMenuActionName.action", - { - message: "PlotMapReq", - ajax: "true", - }, - (data) => {}, - "json" - ); - $.post("viewLoginAreaAction", (html) => { - $("#login-modal .loginmodal-container").html(html); - DrawLoginCaptcha(); - $("#login-modal").modal("show"); - }); - afterLoginModal.style.display = "none"; - afterLoginDiv.style.display = "none"; - afterLoginLabel.style.display = "none"; - beforeLoginModal.style.display = "none"; - } else { - $("#form_MainMenuPage").attr("action", contextPath + "/PlotMapReq.action"); - $("#form_MainMenuPage").submit(); - } -} - -window.MouzaMapReqPage = () => { - if (user == "") { - $.post( - "putTargetMenuActionName.action", - { - message: "MouzaMapReq", - ajax: "true", - }, - (data) => {}, - "json" - ); - $.post("viewLoginAreaAction", (html) => { - $("#login-modal .loginmodal-container").html(html); - DrawLoginCaptcha(); - $("#login-modal").modal("show"); - }); - afterLoginModal.style.display = "none"; - afterLoginDiv.style.display = "none"; - afterLoginLabel.style.display = "none"; - beforeLoginModal.style.display = "none"; - } else { - $("#form_MainMenuPage").attr("action", contextPath + "/MouzaMapReq.action"); - $("#form_MainMenuPage").submit(); - } -} -window.MouzaMapAvailabilityPage = () => { - if (user == "") { - $.post( - "putTargetMenuActionName.action", - { - message: "MouzaMapAvailabilityReq", - ajax: "true", - }, - (data) => {}, - "json" - ); - $.post("viewLoginAreaAction", (html) => { - $("#login-modal .loginmodal-container").html(html); - DrawLoginCaptcha(); - $("#login-modal").modal("show"); - }); - afterLoginModal.style.display = "none"; - afterLoginDiv.style.display = "none"; - afterLoginLabel.style.display = "none"; - beforeLoginModal.style.display = "none"; - } else { - $("#form_MainMenuPage").attr( - "action", - contextPath + "/MouzaMapAvailabilityReq.action" - ); - $("#form_MainMenuPage").submit(); - } -} -window.revenueApplicationPage = () => { - if (user == "") { - $.post( - "putTargetMenuActionName.action", - { - message: "RevenueApplication", - ajax: "true", - }, - (data) => {}, - "json" - ); - $.post("viewLoginAreaAction", (html) => { - $("#login-modal .loginmodal-container").html(html); - DrawLoginCaptcha(); - $("#login-modal").modal("show"); - }); - afterLoginModal.style.display = "none"; - afterLoginDiv.style.display = "none"; - afterLoginLabel.style.display = "none"; - beforeLoginModal.style.display = "none"; - } else { - $("#form_MainMenuPage").attr( - "action", - contextPath + "/RevenueApplication.action" - ); - $("#form_MainMenuPage").submit(); - } -} - -window.revenueApplicationListPage = () => { - if (user == "") { - $.post( - "putTargetMenuActionName.action", - { - message: "RevenueApplicationList", - ajax: "true", - }, - (data) => {}, - "json" - ); - $.post("viewLoginAreaAction", (html) => { - $("#login-modal .loginmodal-container").html(html); - DrawLoginCaptcha(); - $("#login-modal").modal("show"); - }); - afterLoginModal.style.display = "none"; - afterLoginDiv.style.display = "none"; - afterLoginLabel.style.display = "none"; - beforeLoginModal.style.display = "none"; - } else { - $("#form_MainMenuPage").attr( - "action", - contextPath + "/RevenueApplicationList.action" - ); - $("#form_MainMenuPage").submit(); - } -} - -window.revenueNoDueCertificatePage = () => { - if (user == "") { - $.post( - "putTargetMenuActionName.action", - { - message: "RevenueNoDueCertificate", - ajax: "true", - }, - (data) => {}, - "json" - ); - $.post("viewLoginAreaAction", (html) => { - $("#login-modal .loginmodal-container").html(html); - DrawLoginCaptcha(); - $("#login-modal").modal("show"); - }); - afterLoginModal.style.display = "none"; - afterLoginDiv.style.display = "none"; - afterLoginLabel.style.display = "none"; - beforeLoginModal.style.display = "none"; - } else { - $("#form_MainMenuPage").attr( - "action", - contextPath + "/RevenueNoDueCertificate.action" - ); - $("#form_MainMenuPage").submit(); - } -} - -window.privateAminApplicationPage = () => { - if (user == "") { - $.post( - "putTargetMenuActionName.action", - { - message: "PrivateAminApplication", - ajax: "true", - }, - (data) => {}, - "json" - ); - $.post("viewLoginAreaAction", (html) => { - $("#login-modal .loginmodal-container").html(html); - DrawLoginCaptcha(); - $("#login-modal").modal("show"); - }); - afterLoginModal.style.display = "none"; - afterLoginDiv.style.display = "none"; - afterLoginLabel.style.display = "none"; - beforeLoginModal.style.display = "none"; - } else { - $("#form_MainMenuPage").attr( - "action", - contextPath + "/privateAminApplicationPage.action" - ); - $("#form_MainMenuPage").submit(); - } -} - -window.privateAminRegistrationPage = () => { - if (user == "") { - $.post( - "putTargetMenuActionName.action", - { - message: "PrivateAminRegistration", - ajax: "true", - }, - (data) => {}, - "json" - ); - $.post("viewLoginAreaAction", (html) => { - $("#login-modal .loginmodal-container").html(html); - DrawLoginCaptcha(); - $("#login-modal").modal("show"); - }); - afterLoginModal.style.display = "none"; - afterLoginDiv.style.display = "none"; - afterLoginLabel.style.display = "none"; - beforeLoginModal.style.display = "none"; - } else { - $("#form_MainMenuPage").attr( - "action", - contextPath + "/privateAminRegistrationPage.action" - ); - $("#form_MainMenuPage").submit(); - } -} -window.revenueCollectionReportPage = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/revenueCollectionReportAction.action"); - $("#form_MainMenuPage").submit(); -} -window.Apprec_rep = () => { - if (user == "") { - $.post( - "putTargetMenuActionName.action", - { - message: "Apprecrep", - ajax: "true", - }, - (data) => {}, - "json" - ); - $.post("viewLoginAreaAction", (html) => { - $("#login-modal .loginmodal-container").html(html); - DrawLoginCaptcha(); - $("#login-modal").modal("show"); - }); - afterLoginModal.style.display = "none"; - afterLoginDiv.style.display = "none"; - afterLoginLabel.style.display = "none"; - beforeLoginModal.style.display = "none"; - } else { - $("#form_MainMenuPage").attr("action", contextPath + "/Apprecrep.action"); - $("#form_MainMenuPage").submit(); - } -} - -window.FeesCollectionPage = (applicationNo) => { - if (user == "") { - $.post( - "putTargetMenuActionName.action", - { - message: "FeesCollection", - ajax: "true", - }, - (data) => {}, - "json" - ); - $.post("viewLoginAreaAction", (html) => { - $("#login-modal .loginmodal-container").html(html); - DrawLoginCaptcha(); - $("#login-modal").modal("show"); - }); - afterLoginModal.style.display = "none"; - afterLoginDiv.style.display = "none"; - afterLoginLabel.style.display = "none"; - beforeLoginModal.style.display = "none"; - } else { - if (applicationNo == "") - $("#form_MainMenuPage").attr( - "action", - contextPath + "/FeesCollection.action" - ); - else - $("#form_MainMenuPage").attr( - "action", - contextPath + "/FeesCollection.action?applnNo=" + applicationNo - ); - $("#form_MainMenuPage").submit(); - } -} -window.muteStatusPage = () => { - if (user == "") { - $.post( - "putTargetMenuActionName.action", - { - message: "MuteStatus", - ajax: "true", - }, - (data) => {}, - "json" - ); - $.post("viewLoginAreaAction", (html) => { - $("#login-modal .loginmodal-container").html(html); - DrawLoginCaptcha(); - $("#login-modal").modal("show"); - }); - afterLoginModal.style.display = "none"; - afterLoginDiv.style.display = "none"; - afterLoginLabel.style.display = "none"; - beforeLoginModal.style.display = "none"; - } else { - $("#form_MainMenuPage").attr("action", contextPath + "/MuteStatus.action"); - $("#form_MainMenuPage").submit(); - } -} - -window.convStatusPage = () => { - if (user == "") { - $.post( - "putTargetMenuActionName.action", - { - message: "ConvStatus", - ajax: "true", - }, - (data) => {}, - "json" - ); - $.post("viewLoginAreaAction", (html) => { - $("#login-modal .loginmodal-container").html(html); - DrawLoginCaptcha(); - $("#login-modal").modal("show"); - }); - afterLoginModal.style.display = "none"; - afterLoginDiv.style.display = "none"; - afterLoginLabel.style.display = "none"; - beforeLoginModal.style.display = "none"; - } else { - $("#form_MainMenuPage").attr("action", contextPath + "/ConvStatus.action"); - $("#form_MainMenuPage").submit(); - } -} - -window.warishStatusPage = () => { - if (user == "") { - $.post( - "putTargetMenuActionName.action", - { - message: "WarishStatus", - ajax: "true", - }, - (data) => {}, - "json" - ); - $.post("viewLoginAreaAction", (html) => { - $("#login-modal .loginmodal-container").html(html); - DrawLoginCaptcha(); - $("#login-modal").modal("show"); - }); - afterLoginModal.style.display = "none"; - afterLoginDiv.style.display = "none"; - afterLoginLabel.style.display = "none"; - beforeLoginModal.style.display = "none"; - } else { - $("#form_MainMenuPage").attr( - "action", - contextPath + "/WarishStatus.action" - ); - $("#form_MainMenuPage").submit(); - } -} - -window.plotKhatianStatusPage = () => { - if (user == "") { - $.post( - "putTargetMenuActionName.action", - { - message: "PlotKhatianStatus", - ajax: "true", - }, - (data) => {}, - "json" - ); - $.post("viewLoginAreaAction", (html) => { - $("#login-modal .loginmodal-container").html(html); - DrawLoginCaptcha(); - $("#login-modal").modal("show"); - }); - afterLoginModal.style.display = "none"; - afterLoginDiv.style.display = "none"; - afterLoginLabel.style.display = "none"; - beforeLoginModal.style.display = "none"; - } else { - $("#form_MainMenuPage").attr( - "action", - contextPath + "/PlotKhatianStatus.action" - ); - $("#form_MainMenuPage").submit(); - } -} - -window.rslrPlotInfoPage = () => { - if (user == "") { - $.post( - "putTargetMenuActionName.action", - { - message: "RslrPlotInfo", - ajax: "true", - }, - (data) => {}, - "json" - ); - $.post("viewLoginAreaAction", (html) => { - $("#login-modal .loginmodal-container").html(html); - DrawLoginCaptcha(); - $("#login-modal").modal("show"); - }); - afterLoginModal.style.display = "none"; - afterLoginDiv.style.display = "none"; - afterLoginLabel.style.display = "none"; - beforeLoginModal.style.display = "none"; - } else { - $("#form_MainMenuPage").attr( - "action", - contextPath + "/RslrPlotInfo.action" - ); - $("#form_MainMenuPage").submit(); - } -} - -window.landClassPage = () => { - if (user == "") { - $.post( - "putTargetMenuActionName.action", - { - message: "LandClass", - ajax: "true", - }, - (data) => {}, - "json" - ); - $.post("viewLoginAreaAction", (html) => { - $("#login-modal .loginmodal-container").html(html); - DrawLoginCaptcha(); - $("#login-modal").modal("show"); - }); - afterLoginModal.style.display = "none"; - afterLoginDiv.style.display = "none"; - afterLoginLabel.style.display = "none"; - beforeLoginModal.style.display = "none"; - } else { - $("#form_MainMenuPage").attr("action", contextPath + "/LandClass.action"); - $("#form_MainMenuPage").submit(); - } -} - -window.signedPdfPage = () => { - if (user == "") { - $.post( - "putTargetMenuActionName.action", - { - message: "signedPdfList", - ajax: "true", - }, - (data) => {}, - "json" - ); - $.post("viewLoginAreaAction", (html) => { - $("#login-modal .loginmodal-container").html(html); - DrawLoginCaptcha(); - $("#login-modal").modal("show"); - }); - afterLoginModal.style.display = "none"; - afterLoginDiv.style.display = "none"; - afterLoginLabel.style.display = "none"; - beforeLoginModal.style.display = "none"; - } else { - $("#form_MainMenuPage").attr( - "action", - contextPath + "/signedPdfList.action" - ); - $("#form_MainMenuPage").submit(); - } -} - -window.convAppViewPage = () => { - if (user == "") { - $.post( - "putTargetMenuActionName.action", - { - message: "ConvAppViewAction", - ajax: "true", - }, - (data) => {}, - "json" - ); - $.post("viewLoginAreaAction", (html) => { - $("#login-modal .loginmodal-container").html(html); - DrawLoginCaptcha(); - $("#login-modal").modal("show"); - }); - afterLoginModal.style.display = "none"; - afterLoginDiv.style.display = "none"; - afterLoginLabel.style.display = "none"; - beforeLoginModal.style.display = "none"; - } else { - $("#form_MainMenuPage").attr( - "action", - contextPath + "/ConvAppViewAction.action" - ); - $("#form_MainMenuPage").submit(); - } -} - -window.warishAppViewPage = () => { - if (user == "") { - $.post( - "putTargetMenuActionName.action", - { - message: "WarishAppViewAction", - ajax: "true", - }, - (data) => {}, - "json" - ); - $.post("viewLoginAreaAction", (html) => { - $("#login-modal .loginmodal-container").html(html); - DrawLoginCaptcha(); - $("#login-modal").modal("show"); - }); - afterLoginModal.style.display = "none"; - afterLoginDiv.style.display = "none"; - afterLoginLabel.style.display = "none"; - beforeLoginModal.style.display = "none"; - } else { - $("#form_MainMenuPage").attr( - "action", - contextPath + "/WarishAppViewAction.action" - ); - $("#form_MainMenuPage").submit(); - } -} - -window.GrievApplicationPage = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/GrievAppViewAction.action"); - $("#form_MainMenuPage").submit(); -} - -window.GrievStatusViewPage = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/GrievStatusViewAction.action"); - $("#form_MainMenuPage").submit(); -} - -window.querySearchPage = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/QuerySearchAction.action"); - $("#form_MainMenuPage").submit(); -} - -window.SiteMapPage = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/Sitemap.action"); - $("#form_MainMenuPage").submit(); -} - -window.termuse = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/termsofuse.action"); - $("#form_MainMenuPage").submit(); -} - -window.linkpol = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/linkingpolicy.action"); - $("#form_MainMenuPage").submit(); -} - -window.pripol = () => { - window.location.href = contextPath + "/privacypolicy.action"; -} - -window.loadDashboard = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/dashboard.action"); - $("#form_MainMenuPage").submit(); -} - -window.RegRenew_DashboardPage = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/RegRenew_Dashboard.action"); - $("#form_MainMenuPage").submit(); -} - -window.feedback = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/feedBackPage.action"); - $("#form_MainMenuPage").submit(); -} - -window.searchActionChange = () => { - const functionChange = $(".search_select").val(); - eval(functionChange + "()"); -} - -window.webInformationManger = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/webInformationManager.action"); - $("#form_MainMenuPage").submit(); -} - -window.helpPage = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/help.action"); - $("#form_MainMenuPage").submit(); -} - -window.ApplnsearchPageGrn = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/appliSearchGrn.action"); - $("#form_MainMenuPage").submit(); -} - -window.LandAcquisitionPage = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/LandAcquisition.action"); - $("#form_MainMenuPage").submit(); -} - -window.LACollector = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/LACollector.action"); - $("#form_MainMenuPage").submit(); -} - -window.ScreenReaderAccess = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/ScreenReaderAccess.action"); - $("#form_MainMenuPage").submit(); -} - -window.loadBrickFieldApplication = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/brickFieldApplication.action"); - $("#form_MainMenuPage").submit(); -} - -window.loadBrickFieldModification = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/brickFieldModification.action"); - $("#form_MainMenuPage").submit(); -} - -window.loadBrickFieldDemandSheet = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/brkFldDmndSheet.action"); - $("#form_MainMenuPage").submit(); -} - -window.loadBrickFieldPayment = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/BrickFieldFeesCollection"); - $("#form_MainMenuPage").submit(); -} - -window.loadBrickFieldReceiptReprint = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/brkFldApprecrep"); - $("#form_MainMenuPage").submit(); -} - -window.loadGrnSearch = () => { - if (user == "") { - $.post( - "putTargetMenuActionName.action", - { - message: "appGrnSrch", - ajax: "true", - }, - (data) => {}, - "json" - ); - $.post("viewLoginAreaAction", (html) => { - $("#login-modal .loginmodal-container").html(html); - DrawLoginCaptcha(); - $("#login-modal").modal("show"); - }); - afterLoginModal.style.display = "none"; - afterLoginDiv.style.display = "none"; - afterLoginLabel.style.display = "none"; - beforeLoginModal.style.display = "none"; - } else { - $("#form_MainMenuPage").attr("action", contextPath + "/appGrnSrch"); - $("#form_MainMenuPage").submit(); - } -} - -window.loadAddUserInformation = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/AddUserInformation.action"); - $("#form_MainMenuPage").submit(); -} - -window.loadModifyUserInformation = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/modifyUserInformation.action"); - $("#form_MainMenuPage").submit(); -} - -$(() => { - $(".langSaveToSession").click(() => { - $.post("addLang.action", { - language: $(this).attr("id"), - ajax: "true", - }); - }); -}); - -window.LandAcquisitionEntryMod = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/LandAcquisitionEntryMod.action"); - $("#form_MainMenuPage").submit(); -} - -window.LandAcquisitionRecordView = () => { - $("#form_MainMenuPage").attr("action", contextPath + "/LandAcquisitionRecordView.action"); - $("#form_MainMenuPage").submit(); -} - -window.openBrkFldModal = () => { - const formInput = $(this).serialize(); - $.post( - "distPopulateAction_KUP.action", - formInput, - (data) => { - let listDistItems = ""; - $.each(data.districtList, (key, value) => { - listDistItems += - ""; - }); - $("select#lstDistrictCodeBrkFld").html(listDistItems); - $("#brkfldmyModal").show(); - }, - "json" - ); -} - -window.saveLocation = () => { - $(".transparentCover").show(); - $(".loading").show(); - $.ajax({ - type: "POST", - url: "saveBrkFldLocation", - data: { - lstDistrictCodeBrkFld: $("#lstDistrictCodeBrkFld").val(), - }, - success: (response, textStatus) => { - $("#brkfldmyModal").hide(); - $("#information-modal .information").html( - "