testing new scriopt

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-17 02:00:08 +01:00
parent 7b055d126d
commit 4273212bc1
1 changed files with 3 additions and 5 deletions

View File

@ -88,7 +88,7 @@
</div> </div>
<script> <script>
// JavaScript to handle the modal and populate values when the button is clicked $(document).ready(function () {
$('#configureModal').on('show.bs.modal', function (event) { $('#configureModal').on('show.bs.modal', function (event) {
var button = $(event.relatedTarget); var button = $(event.relatedTarget);
var macAddress = button.data('id'); var macAddress = button.data('id');
@ -101,13 +101,11 @@
modal.find('#universe').val(universe); modal.find('#universe').val(universe);
}); });
// JavaScript to handle form submission $('#configureForm').submit(function (event) {
$('#configureForm').submit(function(event) {
// Add your logic here to handle form submission using AJAX or other methods
// You can access values with $('#dmxAddress').val() and $('#universe').val()
event.preventDefault(); event.preventDefault();
$('#configureModal').modal('hide'); $('#configureModal').modal('hide');
}); });
});
</script> </script>
</div> </div>