diff --git a/public/javascripts/wechat/directives/multi_reply.js b/public/javascripts/wechat/directives/multi_reply.js
index 92abe5d6c..6c4f1cccc 100644
--- a/public/javascripts/wechat/directives/multi_reply.js
+++ b/public/javascripts/wechat/directives/multi_reply.js
@@ -7,24 +7,22 @@ app.directive('multiReply',["$timeout",function(timer){
scope: {},
link: function(scope, element){
timer(function(){
- $(".reply-icons").each(function(){
- $(this).toggle(function(){
- var multiInput = $(this).next().next();
- multiInput.show();
- multiInput.focus();
+ $(".reply-icons").live("click",function(){
+ if($(this).hasClass("multi-hide")){
+ $(".multi-input-container").addClass("undis");
+ $(".reply-icons").addClass("multi-hide");
+ $(this).next().next().removeClass("undis");
+ $(this).next().next().focus();
+ $(this).removeClass("multi-hide");
$(".post-reply-input").val("");
- $(multiInput).bind("focus",function(){
- $("#post_input_1").hide();
- });
- },function(){
- var multiInput = $(this).next().next();
- $(this).next().next().hide();
- $(this).next().next().blur();
+ $("#post_input_1").hide();
+ }
+ else{
+ $(this).addClass("multi-hide");
+ $(".post-input-container").addClass("undis");
$(".post-reply-input").val("");
- $(multiInput).bind("blur",function(){
- $("#post_input_1").show();
- });
- });
+ $("#post_input_1, #post_input_1 .post-input-container").show();
+ }
});
})
}