(function($){if($(".select2").length&&$(".select2").select2(),$(".calendar-confirm").length&&$(".calendar-confirm").on("click",window.initDeleteConfirm),$("form #reservations-hasBillAddress").length){var $billAddressField=$("form #reservations-hasBillAddress");$billAddressField.is(":checked")&&($("form .bill-field").addClass("show"),$('form .bill-field input[type="text"]').attr("required",!0),$('form .bill-field input[type="text"]').prop("required",!0)),$billAddressField.on("change",function(e){$("form .bill-field").removeClass("show"),$('form .bill-field input[type="text"]').attr("required",!1),$('form .bill-field input[type="text"]').prop("required",!1),$(this).is(":checked")&&($("form .bill-field").addClass("show"),$('form .bill-field input[type="text"]').attr("required",!0),$('form .bill-field input[type="text"]').prop("required",!0))})}$(".approvalList-search").length&&$(".approvalList-search select").on("change",function(){$(this).parents("form").trigger("submit")})})(jQuery);
