diff --git a/public/assets/wechat/blog_detail.html b/public/assets/wechat/blog_detail.html index 9b9141481..444f16957 100644 --- a/public/assets/wechat/blog_detail.html +++ b/public/assets/wechat/blog_detail.html @@ -73,11 +73,11 @@
{{journal.praise_count}}
{{journal.praise_count}}
-
+
回复
-
+
diff --git a/public/assets/wechat/course_discussion.html b/public/assets/wechat/course_discussion.html index ab5c91a5b..a21b5aec0 100644 --- a/public/assets/wechat/course_discussion.html +++ b/public/assets/wechat/course_discussion.html @@ -71,11 +71,11 @@
{{journal.praise_count}}
{{journal.praise_count}}
-
+
-
+
diff --git a/public/assets/wechat/course_notice.html b/public/assets/wechat/course_notice.html index b3d16ec26..273f7e703 100644 --- a/public/assets/wechat/course_notice.html +++ b/public/assets/wechat/course_notice.html @@ -86,11 +86,11 @@
{{journal.praise_count}}
{{journal.praise_count}}
-
+
-
+
diff --git a/public/assets/wechat/homework_detail.html b/public/assets/wechat/homework_detail.html index ad63d29f3..f978fc01d 100644 --- a/public/assets/wechat/homework_detail.html +++ b/public/assets/wechat/homework_detail.html @@ -75,11 +75,11 @@
{{journal.praise_count}}
{{journal.praise_count}}
-
+
-
+
diff --git a/public/assets/wechat/issue_detail.html b/public/assets/wechat/issue_detail.html index 4adc4ca66..a3e861649 100644 --- a/public/assets/wechat/issue_detail.html +++ b/public/assets/wechat/issue_detail.html @@ -92,11 +92,11 @@
{{journal.praise_count}}
{{journal.praise_count}}
-
+
-
+
diff --git a/public/assets/wechat/jour_message_detail.html b/public/assets/wechat/jour_message_detail.html index 721a62727..fe746a1fc 100644 --- a/public/assets/wechat/jour_message_detail.html +++ b/public/assets/wechat/jour_message_detail.html @@ -70,11 +70,11 @@
{{journal.praise_count}}
{{journal.praise_count}}
-
+
-
+
diff --git a/public/assets/wechat/project_discussion.html b/public/assets/wechat/project_discussion.html index e2ebc2231..d30ef298b 100644 --- a/public/assets/wechat/project_discussion.html +++ b/public/assets/wechat/project_discussion.html @@ -71,11 +71,11 @@
{{journal.praise_count}}
{{journal.praise_count}}
-
+
-
+
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(); + } }); }) }