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:
justme1968
2015-12-23 18:02:17 +00:00
parent 2968bd2bdc
commit 00278f2f75

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