Skip to content

Commit

Permalink
[frontend] fixed calendar button alignment in Oozie WF Submit form (#…
Browse files Browse the repository at this point in the history
…3740)

* [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 <tj@cloudera.com>
Co-authored-by: Johan Åhlén <johan@johanahlen.com>
  • Loading branch information
3 people authored Oct 24, 2024
1 parent 16c940e commit 9a85afa
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions desktop/core/src/desktop/templates/scheduler/submit_job_popup.mako
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ else:
}
#param-container .btn-group {
margin-left: 10px;
position: absolute;
}
</style>

Expand Down Expand Up @@ -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');
Expand Down

0 comments on commit 9a85afa

Please sign in to comment.