From 87e8890c369db4bfc18146d01594e289fbfbb14c Mon Sep 17 00:00:00 2001 From: crieke Date: Mon, 13 Apr 2026 05:39:12 +0200 Subject: [PATCH] remove debug info, restart after settings change --- QPKG/shared/web/content/info.php | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/QPKG/shared/web/content/info.php b/QPKG/shared/web/content/info.php index 11bd94b..ffd9ee0 100644 --- a/QPKG/shared/web/content/info.php +++ b/QPKG/shared/web/content/info.php @@ -150,7 +150,8 @@ include_once("/home/httpd/cgi-bin/qpkg/RoonServer/__functions.php"); return false; }); function changeSettings(el) { - console.log(el.id + ": " + el.checked); + // add code to guide user to press save next + //console.log(el.id + ": " + el.checked); } $( document ).ready(function() { @@ -160,16 +161,10 @@ include_once("/home/httpd/cgi-bin/qpkg/RoonServer/__functions.php"); for (let conf_option of qpkg_options_arr) { document.getElementById(conf_option).checked = true; } - +}); -// document.getElementById('smb_cifs').checked = false; -// document.getElementById('usb_audio').checked = false; -// document.getElementById('hdmi_audio').checked = false; - }); - - // Function to download log files - function saveOptions () { - console.log('click'); +// Function to download log files +function saveOptions () { var qnap_options = ""; qnap_options += document.getElementById('smb_cifs').checked ? "smb_cifs;" : "" ; qnap_options += document.getElementById('usb_audio').checked ? "usb_audio;" : "" ; @@ -182,11 +177,9 @@ include_once("/home/httpd/cgi-bin/qpkg/RoonServer/__functions.php"); url: strUrl, dataType: 'json', success: function (cb_data) { - console.log('success function...'); - console.log('Debug Objects2: ' + cb_data.options ); + restartRoonServer(); } }); } - \ No newline at end of file