diff --git a/proxstar/__init__.py b/proxstar/__init__.py index caa24c6..e7e4fa2 100644 --- a/proxstar/__init__.py +++ b/proxstar/__init__.py @@ -377,6 +377,7 @@ def boot_order(vmid): user = User(session['userinfo']['preferred_username']) proxmox = connect_proxmox() if user.rtp or int(vmid) in user.allowed_vms: + print(request.form) boot_order = [] for key, value in request.form.items(): boot_order.append(value) diff --git a/proxstar/static/js/script.js b/proxstar/static/js/script.js index c92bcf9..5a0698c 100644 --- a/proxstar/static/js/script.js +++ b/proxstar/static/js/script.js @@ -989,6 +989,7 @@ $("#edit-boot-order").click(function(){ for (k = 0; k < boot_order.length; k++) { e = document.getElementById(`boot-order-${k + 1}`); data.append(`${k + 1}`, e.options[e.selectedIndex].value); + console.log(e.options[e.selectedIndex].value); } fetch(`/vm/${vmid}/boot_order`, { credentials: 'same-origin',