2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

fhemweb.js: do not crash if FHEMWEB is old (Forum #129979)

git-svn-id: https://svn.fhem.de/fhem/trunk@26630 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2022-10-31 10:21:43 +00:00
parent edf67be958
commit 36221537c3

View File

@ -870,7 +870,8 @@ FW_inlineModify() // Do not generate a new HTML page upon pressing modify
}
});
if(!$("body").attr("data-hiddenroom").match(/\binput\b/)) {
var hr = $("body").attr("data-hiddenroom");
if(!hr || !hr.match(/\binput\b/)) {
$("table.internals div.dname").each(function(){
if($(this).text() == "NAME") {
var dev = $(this).attr("data-name");