remove debug info, restart after settings change
This commit is contained in:
@@ -150,7 +150,8 @@ include_once("/home/httpd/cgi-bin/qpkg/RoonServer/__functions.php");
|
|||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
function changeSettings(el) {
|
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() {
|
$( 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) {
|
for (let conf_option of qpkg_options_arr) {
|
||||||
document.getElementById(conf_option).checked = true;
|
document.getElementById(conf_option).checked = true;
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// Function to download log files
|
||||||
// document.getElementById('smb_cifs').checked = false;
|
function saveOptions () {
|
||||||
// document.getElementById('usb_audio').checked = false;
|
|
||||||
// document.getElementById('hdmi_audio').checked = false;
|
|
||||||
});
|
|
||||||
|
|
||||||
// Function to download log files
|
|
||||||
function saveOptions () {
|
|
||||||
console.log('click');
|
|
||||||
var qnap_options = "";
|
var qnap_options = "";
|
||||||
qnap_options += document.getElementById('smb_cifs').checked ? "smb_cifs;" : "" ;
|
qnap_options += document.getElementById('smb_cifs').checked ? "smb_cifs;" : "" ;
|
||||||
qnap_options += document.getElementById('usb_audio').checked ? "usb_audio;" : "" ;
|
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,
|
url: strUrl,
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: function (cb_data) {
|
success: function (cb_data) {
|
||||||
console.log('success function...');
|
restartRoonServer();
|
||||||
console.log('Debug Objects2: ' + cb_data.options );
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
Reference in New Issue
Block a user