From afdf053ced992ab889b66d29a8d37069c57656e4 Mon Sep 17 00:00:00 2001 From: tarunjangid Date: Fri, 27 Sep 2024 17:55:10 +0530 Subject: [PATCH] removing the event handler after hide --- .../core/src/desktop/templates/scheduler/submit_job_popup.mako | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/desktop/core/src/desktop/templates/scheduler/submit_job_popup.mako b/desktop/core/src/desktop/templates/scheduler/submit_job_popup.mako index 178e59dbd96..4942f157132 100644 --- a/desktop/core/src/desktop/templates/scheduler/submit_job_popup.mako +++ b/desktop/core/src/desktop/templates/scheduler/submit_job_popup.mako @@ -170,9 +170,9 @@ else: $(document).on("click.hideDatepicker", function (event) { if (!$(event.target).closest(".datepicker, .calendar-link, input[type='text']").length) { _el.datepicker('hide'); + $(document).off("click.hideDatepicker"); } }); - $(document).off("click.hideDatepicker"); }); _el.datepicker('show');