first commit

This commit is contained in:
2025-07-06 16:29:23 +02:00
commit 77160b1905
122 changed files with 18906 additions and 0 deletions

32
public/lib/app/app.js Normal file
View File

@ -0,0 +1,32 @@
function ModalLoad(idmodal, title, path) {
$("#" + idmodal + " .modal-header h4").text(title);
$("#" + idmodal + " #framemodal").attr("src", path);
}
$(document).ready(function () {
$("#selectproject").on("change", function () {
url = $(this).data("change");
$.ajax({
type: "POST",
url: url,
data: {
id: $(this).val()
},
success: function (result) {
location.reload();
}
});
});
});
$(document).ready(function () {
$(document).on('select2:open', () => {
setTimeout(() => {
let input = document.querySelector('.select2-container--open .select2-search__field');
if (input) input.focus();
}, 0);
});
});