mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-13 15:19:52 +00:00
fhemweb_readingsGroup.js: use mapping only for textField label
git-svn-id: https://svn.fhem.de/fhem/trunk@10241 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
15d6909c43
commit
b1249a55c8
@ -18,7 +18,9 @@ FW_readingsGroupReadyFn() {
|
||||
|
||||
$(this).find("[rg-fhemWidget-label]").each(function() {
|
||||
var txt = $(this).attr('rg-fhemWidget-label');
|
||||
$(this).find('div').first().contents().first().replaceWith(txt);
|
||||
var contents = $(this).find('div').first().contents();
|
||||
if( contents.size() == 2 )
|
||||
contents.first().replaceWith(txt);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user