fix bug
This commit is contained in:
@@ -565,15 +565,13 @@ function collect(){
|
||||
}
|
||||
|
||||
/* 发布评论 */
|
||||
$(".commentInputBox input").focus(function () {
|
||||
alert("dddddd");
|
||||
$(".commentInputBox input").click(function () {
|
||||
$(".commentInputBox").hide();
|
||||
$(".commentReleaseBox").show();
|
||||
$(".commentReleaseBox input").focus();
|
||||
$(".commentReleaseBox input").val("");
|
||||
});
|
||||
$(".commentReleaseBox a").on("click", function () {
|
||||
alert("ccccc");
|
||||
$(".commentReleaseBox").hide();
|
||||
$(".commentInputBox").show();
|
||||
var content = $(".commentReleaseBox input").val();
|
||||
@@ -632,7 +630,6 @@ $(function() {
|
||||
$('#commentInput').on('click', function () {
|
||||
var target = this;
|
||||
// 使用定时器是为了让输入框上滑时更加自然
|
||||
|
||||
setTimeout(function(){
|
||||
document.body.scrollTop = document.body.scrollHeight;
|
||||
target.scrollIntoView(true);
|
||||
|
||||
Reference in New Issue
Block a user