remove debug info, restart after settings change

This commit is contained in:
crieke
2026-04-13 05:39:12 +02:00
parent 1639e66b10
commit 87e8890c36

View File

@@ -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();
}
});
}
</script>