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:
parent
5bb29c4f34
commit
412cfb912c
@ -506,9 +506,11 @@ function fillconfig(name){
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function saveconfig(name){
|
function saveconfig(name,mode){
|
||||||
|
|
||||||
|
if (mode == 'wizard'){
|
||||||
makeconfig();
|
makeconfig();
|
||||||
|
}
|
||||||
conf = document.getElementById(name).value;
|
conf = document.getElementById(name).value;
|
||||||
conf = conf.replace(/\n/g,'#[EOL]');
|
conf = conf.replace(/\n/g,'#[EOL]');
|
||||||
conf = conf.replace(/:/g,'#c[dp]');
|
conf = conf.replace(/:/g,'#c[dp]');
|
||||||
@ -1183,6 +1185,7 @@ function setpreconf(name){
|
|||||||
}
|
}
|
||||||
|
|
||||||
function savepreconf(name){
|
function savepreconf(name){
|
||||||
saveconfig('rawconfig4');
|
mode = 'preconf';
|
||||||
|
saveconfig('rawconfig4',mode);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user