mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-12 16:46:35 +00:00
fhemweb.js: scroll to device help (Forum #33916)
git-svn-id: https://svn.fhem.de/fhem/trunk@8067 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
38bc1a9ed9
commit
5f6cf5d92a
@ -152,6 +152,8 @@ FW_jqueryReadyFn()
|
||||
$("#content").append('<div id="devSpecHelp"></div>');
|
||||
FW_cmd(FW_root+"?cmd=help "+dev+"&XHR=1", function(data) {
|
||||
$("#devSpecHelp").html(data);
|
||||
var off = $("#devSpecHelp").position().top-20;
|
||||
$('body, html').animate({scrollTop:off}, 500);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user