From 412cfb912cc9ef4c002f9c900d3241145bf8a2d0 Mon Sep 17 00:00:00 2001 From: Byte09 <> Date: Sun, 16 Feb 2020 07:42:48 +0000 Subject: [PATCH] MSwitch_Wizard.js:Bugfix git-svn-id: https://svn.fhem.de/fhem/trunk@21204 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/www/pgm2/MSwitch_Wizard.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/fhem/www/pgm2/MSwitch_Wizard.js b/fhem/www/pgm2/MSwitch_Wizard.js index 186a68caa..7cdf99824 100644 --- a/fhem/www/pgm2/MSwitch_Wizard.js +++ b/fhem/www/pgm2/MSwitch_Wizard.js @@ -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; } \ No newline at end of file