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

fhemweb.js: revert to german doc if there is no english one (Forum #105317)

git-svn-id: https://svn.fhem.de/fhem/trunk@20554 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2019-11-20 20:53:04 +00:00
parent 09f2e983ce
commit aa3639f66d

View File

@ -349,6 +349,8 @@ FW_getHelp(dev, fn)
if(FW_helpData)
return fn(FW_helpData);
FW_cmd(FW_root+"?cmd=help "+dev+"&XHR=1", function(data) {
if(data.match(/^<html>No help found/)) // for our german only friends
return FW_getHelp(dev+" DE", fn);
FW_helpData = data;
return fn(FW_helpData);
});