Implemented READLOGFILE client-side

This commit is contained in:
Carlos
2020-02-22 18:06:26 +01:00
parent 8ebac6a33d
commit b7e1478991
7 changed files with 42 additions and 35 deletions

View File

@ -195,6 +195,7 @@ $("#disconnectionModalWelcomeScreenButton").click(function() {
$("#settingsLink").click(function() {
//Update modal switches and boxes with saved settings
$("#showDateSettingsSwitch").prop("checked", persistenceManager.getSetting("dateTimePrefix"));
$("#readLogFileSwitch").prop("checked", persistenceManager.getSetting("retrieveLogFile"));
});
/**
@ -203,4 +204,12 @@ $("#settingsLink").click(function() {
$("#showDateSettingsSwitch").click(function() {
//Update modal switches and boxes with saved settings
persistenceManager.setSetting("dateTimePrefix", $("#showDateSettingsSwitch").is(":checked"));
});
/**
* On readLogFileSwitch switched
*/
$("#readLogFileSwitch").click(function() {
//Update modal switches and boxes with saved settings
persistenceManager.setSetting("retrieveLogFile", $("#readLogFileSwitch").is(":checked"));
});