mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-02-28 08:54:51 +00:00
fhemweb_uzsu.js: fix initial state in summary line (see https://forum.fhem.de/index.php/topic,53532.msg452067.html#msg452067)
git-svn-id: https://svn.fhem.de/fhem/trunk@11524 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
9a8c993ccf
commit
bc257183b3
@ -190,6 +190,9 @@ FW_uzsuSelectRadioCreate(elName, devName, vArr, currVal, set, params, cmd)
|
||||
$(newEl).append(label);
|
||||
|
||||
$(button).change(clicked);
|
||||
|
||||
if( currVal )
|
||||
button.prop("checked", currVal == vArr[i] );
|
||||
}
|
||||
|
||||
$(newEl).buttonset();
|
||||
@ -214,7 +217,7 @@ FW_uzsuSelectRadioCreate(elName, devName, vArr, currVal, set, params, cmd)
|
||||
hidden.attr("value", arg);
|
||||
for( var i = 0; i < buttons.length; ++i ) {
|
||||
var button = buttons[i];
|
||||
button.prop("checked", arg.match(new RegExp('(^|,)'+vArr[i+1]+'($|,)') ) );
|
||||
button.prop("checked", (arg == vArr[i+1]) );
|
||||
button.button("refresh");
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user