2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

MSwitch_Wizard.js:Bugfix

git-svn-id: https://svn.fhem.de/fhem/trunk@21204 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
Byte09 2020-02-16 07:42:48 +00:00
parent 5bb29c4f34
commit 412cfb912c

View File

@ -506,9 +506,11 @@ function fillconfig(name){
}
function saveconfig(name){
function saveconfig(name,mode){
if (mode == 'wizard'){
makeconfig();
}
conf = document.getElementById(name).value;
conf = conf.replace(/\n/g,'#[EOL]');
conf = conf.replace(/:/g,'#c[dp]');
@ -1183,6 +1185,7 @@ function setpreconf(name){
}
function savepreconf(name){
saveconfig('rawconfig4');
mode = 'preconf';
saveconfig('rawconfig4',mode);
return;
}