2
0
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:
justme-1968 2015-12-23 18:02:17 +00:00
parent 15d6909c43
commit b1249a55c8

View File

@ -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);
});
});
}