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"); }); -// } + } }) } }