2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-08 07:24:21 +00:00

fhemweb.js: more defensive code (Forum #138962)

git-svn-id: https://svn.fhem.de/fhem/trunk@29073 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2024-08-16 16:33:42 +00:00
parent 8082f8ab0f
commit 725f19536a

View File

@ -456,7 +456,8 @@ FW_filterIcons()
function function
FW_delete(cmd, fCmd) FW_delete(cmd, fCmd)
{ {
if($("body").attr("data-hiddenroom").match(/\binput\b/)) var hr = $("body").attr("data-hiddenroom"); // #138962
if(hr && hr.match(/\binput\b/))
return FW_okDialog("Disabled"); return FW_okDialog("Disabled");
if(!fCmd) if(!fCmd)