From 9a85afab12fce0c155f579c622f3c604c86f08ba Mon Sep 17 00:00:00 2001 From: Tarun Jangid Date: Thu, 24 Oct 2024 20:12:02 +0530 Subject: [PATCH] [frontend] fixed calendar button alignment in Oozie WF Submit form (#3740) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [frontend] fixed calendar button alignment in Oozie WF Submit form * [frontend] fixed changes as per the suggestions * inserted an enter * made changes as per the suggestions * removing the event handler after hide --------- Co-authored-by: tarunjangid Co-authored-by: Johan Åhlén --- .../desktop/templates/scheduler/submit_job_popup.mako | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 55ee3990f80..4942f157132 100644 --- a/desktop/core/src/desktop/templates/scheduler/submit_job_popup.mako +++ b/desktop/core/src/desktop/templates/scheduler/submit_job_popup.mako @@ -128,6 +128,7 @@ else: } #param-container .btn-group { margin-left: 10px; + position: absolute; } @@ -163,7 +164,17 @@ else: else if (_el.val().indexOf("T") == "-1") { _el.val(_el.val() + "T" + _val.split("T")[1]); } + + $(document).off("click.hideDatepicker"); + }).on("show", function() { + $(document).on("click.hideDatepicker", function (event) { + if (!$(event.target).closest(".datepicker, .calendar-link, input[type='text']").length) { + _el.datepicker('hide'); + $(document).off("click.hideDatepicker"); + } + }); }); + _el.datepicker('show'); huePubSub.subscribeOnce('hide.datepicker', function () { _el.datepicker('hide');