mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
fhemweb.js: fix endless loop if no help available (Forum #116176)
git-svn-id: https://svn.fhem.de/fhem/trunk@23238 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
54e2644109
commit
1cafd490e7
@ -355,7 +355,8 @@ FW_getHelp(dev, fn)
|
|||||||
if(FW_helpData)
|
if(FW_helpData)
|
||||||
return fn(FW_helpData);
|
return fn(FW_helpData);
|
||||||
FW_cmd(FW_root+"?cmd=help "+dev+"&XHR=1", function(data) {
|
FW_cmd(FW_root+"?cmd=help "+dev+"&XHR=1", function(data) {
|
||||||
if(data.match(/^<html>No help found/)) // for our german only friends
|
if(data.match(/^<html>No help found/) &&
|
||||||
|
!dev.match(" DE")) // for our german only friends
|
||||||
return FW_getHelp(dev+" DE", fn);
|
return FW_getHelp(dev+" DE", fn);
|
||||||
FW_helpData = data;
|
FW_helpData = data;
|
||||||
return fn(FW_helpData);
|
return fn(FW_helpData);
|
||||||
|
Loading…
Reference in New Issue
Block a user