From ac54918c752680311874e9f4dd6fa6e349d560d3 Mon Sep 17 00:00:00 2001 From: gaojuan Date: Fri, 18 May 2018 11:04:52 +0800 Subject: [PATCH] fix bug --- fangija-zsyf/views/news/newsDetail.html | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/fangija-zsyf/views/news/newsDetail.html b/fangija-zsyf/views/news/newsDetail.html index 59da1bd..bbf7265 100644 --- a/fangija-zsyf/views/news/newsDetail.html +++ b/fangija-zsyf/views/news/newsDetail.html @@ -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);