From 32f7c1eb010cf02b5525a7a13021fda531710669 Mon Sep 17 00:00:00 2001 From: Jordan Rodgers Date: Mon, 19 Mar 2018 15:03:49 -0400 Subject: [PATCH] add the logging back because it broke again --- proxstar/__init__.py | 1 + proxstar/static/js/script.js | 1 + 2 files changed, 2 insertions(+) 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',