diff --git a/public/assets/wechat/app.html b/public/assets/wechat/app.html index fdd4d3276..099384593 100644 --- a/public/assets/wechat/app.html +++ b/public/assets/wechat/app.html @@ -40,7 +40,7 @@ - + diff --git a/public/assets/wechat/blog_detail.html b/public/assets/wechat/blog_detail.html index 570bfb797..3b97e7df4 100644 --- a/public/assets/wechat/blog_detail.html +++ b/public/assets/wechat/blog_detail.html @@ -73,7 +73,17 @@
{{journal.praise_count}}
{{journal.praise_count}}
+
+ 回复 +
+
+
+ + + +
+
diff --git a/public/assets/wechat/course_discussion.html b/public/assets/wechat/course_discussion.html index a3f6ae496..b574deff7 100644 --- a/public/assets/wechat/course_discussion.html +++ b/public/assets/wechat/course_discussion.html @@ -71,7 +71,17 @@
{{journal.praise_count}}
{{journal.praise_count}}
+
+ 回复 +
+
+
+ + + +
+
diff --git a/public/assets/wechat/course_notice.html b/public/assets/wechat/course_notice.html index 33e8e77be..c7ffbd3d5 100644 --- a/public/assets/wechat/course_notice.html +++ b/public/assets/wechat/course_notice.html @@ -86,7 +86,17 @@
{{journal.praise_count}}
{{journal.praise_count}}
+
+ 回复 +
+
+
+ + + +
+
diff --git a/public/assets/wechat/homework_detail.html b/public/assets/wechat/homework_detail.html index bf2a89f35..c33090554 100644 --- a/public/assets/wechat/homework_detail.html +++ b/public/assets/wechat/homework_detail.html @@ -75,7 +75,17 @@
{{journal.praise_count}}
{{journal.praise_count}}
+
+ 回复 +
+
+
+ + + +
+
diff --git a/public/assets/wechat/issue_detail.html b/public/assets/wechat/issue_detail.html index 5b55ebba0..69e3138d6 100644 --- a/public/assets/wechat/issue_detail.html +++ b/public/assets/wechat/issue_detail.html @@ -92,7 +92,17 @@
{{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 5b06a22aa..05fb4c6e9 100644 --- a/public/assets/wechat/jour_message_detail.html +++ b/public/assets/wechat/jour_message_detail.html @@ -70,7 +70,17 @@
{{journal.praise_count}}
{{journal.praise_count}}
+
+ 回复 +
+
+
+ + + +
+
diff --git a/public/assets/wechat/project_discussion.html b/public/assets/wechat/project_discussion.html index e0ee87d78..1ae009927 100644 --- a/public/assets/wechat/project_discussion.html +++ b/public/assets/wechat/project_discussion.html @@ -71,7 +71,17 @@
{{journal.praise_count}}
{{journal.praise_count}}
+
+ 回复 +
+
+
+ + + +
+
diff --git a/public/javascripts/wechat/directives/multi_reply.js b/public/javascripts/wechat/directives/multi_reply.js new file mode 100644 index 000000000..92abe5d6c --- /dev/null +++ b/public/javascripts/wechat/directives/multi_reply.js @@ -0,0 +1,32 @@ +/** + * Created by ttang on 2016/9/5. + */ +app.directive('multiReply',["$timeout",function(timer){ + return{ + restrict: 'A', + scope: {}, + link: function(scope, element){ + timer(function(){ + $(".reply-icons").each(function(){ + $(this).toggle(function(){ + var multiInput = $(this).next().next(); + multiInput.show(); + multiInput.focus(); + $(".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-reply-input").val(""); + $(multiInput).bind("blur",function(){ + $("#post_input_1").show(); + }); + }); + }); + }) + } + } +}]); \ No newline at end of file diff --git a/public/javascripts/wechat/directives/submit_start.js b/public/javascripts/wechat/directives/submit_start.js deleted file mode 100644 index cbdc469ab..000000000 --- a/public/javascripts/wechat/directives/submit_start.js +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Created by ttang on 2016/8/31. - */ -app.directive('submitStart',["$timeout",function(timer){ - return{ - restrict: 'A', - scope: {}, - link: function(scope, element){ - timer(function(){ - $("#manageDelete,.login-box").click(function(){ - element.removeClass("bg-grey c-white"); - element.addClass("link-blue2"); - }); - }) - } - } -}]);