项目缺陷点击留言,下面留言框获得焦点

This commit is contained in:
sw 2015-09-25 17:22:31 +08:00
parent aa07c3408f
commit 591324854b
1 changed files with 3 additions and 1 deletions

View File

@ -362,9 +362,11 @@ $(document).ready(function () {
});
function showAndScrollTo(id, focus) {
$('#' + id).show();
if (focus !== null) {
$('#' + focus).focus();
$('#' + focus).focus();
issue_journal_kind_reply.focus();
}
$('html, body').animate({scrollTop: $('#' + id).offset().top}, 400);
}