first commit
This commit is contained in:
32
public/lib/app/app.js
Normal file
32
public/lib/app/app.js
Normal 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);
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user