2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 16:56:54 +00:00

fhemweb.js: protect device help agains slow FHEM (Forum #68166)

git-svn-id: https://svn.fhem.de/fhem/trunk@13586 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2017-03-03 08:49:05 +00:00
parent d021810900
commit 9a5c19cf40

View File

@ -212,6 +212,8 @@ FW_jqueryReadyFn()
}
$("#content").append('<div id="devSpecHelp"></div>');
FW_cmd(FW_root+"?cmd=help "+dev+"&XHR=1", function(data) {
if(!$("#devSpecHelp").length) // FHEM slow, user clicked again, #68166
return;
$("#devSpecHelp").html(data);
var off = $("#devSpecHelp").position().top-20;
$('body, html').animate({scrollTop:off}, 500);