From 92ae8865f053355d9cbee6afa8e528b4844e88c2 Mon Sep 17 00:00:00 2001 From: Tim Date: Fri, 2 Sep 2016 16:35:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/javascripts/wechat/directives/iphone_recognize.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/javascripts/wechat/directives/iphone_recognize.js b/public/javascripts/wechat/directives/iphone_recognize.js index 27462c7f0..44fb5136a 100644 --- a/public/javascripts/wechat/directives/iphone_recognize.js +++ b/public/javascripts/wechat/directives/iphone_recognize.js @@ -14,7 +14,7 @@ app.directive('iphoneRecognize',["$timeout",function(timer){ $("#all_homework_reply,#all_blog_reply,#all_course_message_reply,#all_message_reply").css("marginBottom","0"); window.scrollTo(0,contentHeight) }; -// if (/ipad|iphone|mac/i.test(navigator.userAgent)){ + if (/ipad|iphone|mac/i.test(navigator.userAgent)){ $("#postInput1").bind('focus',function(){ setTimeout(function(){ toBottom(); @@ -30,7 +30,7 @@ app.directive('iphoneRecognize',["$timeout",function(timer){ $(".post-wrapper").css({"marginBottom":"10px","position":""}); $("#all_homework_reply,#all_blog_reply,#all_course_message_reply,#all_message_reply").css("marginBottom","52px"); }); -// } + } }) } }