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:
parent
d021810900
commit
9a5c19cf40
@ -212,6 +212,8 @@ FW_jqueryReadyFn()
|
|||||||
}
|
}
|
||||||
$("#content").append('<div id="devSpecHelp"></div>');
|
$("#content").append('<div id="devSpecHelp"></div>');
|
||||||
FW_cmd(FW_root+"?cmd=help "+dev+"&XHR=1", function(data) {
|
FW_cmd(FW_root+"?cmd=help "+dev+"&XHR=1", function(data) {
|
||||||
|
if(!$("#devSpecHelp").length) // FHEM slow, user clicked again, #68166
|
||||||
|
return;
|
||||||
$("#devSpecHelp").html(data);
|
$("#devSpecHelp").html(data);
|
||||||
var off = $("#devSpecHelp").position().top-20;
|
var off = $("#devSpecHelp").position().top-20;
|
||||||
$('body, html').animate({scrollTop:off}, 500);
|
$('body, html').animate({scrollTop:off}, 500);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user