summaryrefslogtreecommitdiff
path: root/public/assets/js/lib/views/details/comments.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/assets/js/lib/views/details/comments.js')
-rw-r--r--public/assets/js/lib/views/details/comments.js13
1 files changed, 12 insertions, 1 deletions
diff --git a/public/assets/js/lib/views/details/comments.js b/public/assets/js/lib/views/details/comments.js
index 399c90d..819daba 100644
--- a/public/assets/js/lib/views/details/comments.js
+++ b/public/assets/js/lib/views/details/comments.js
@@ -3,6 +3,8 @@ var CommentsView = FormView.extend({
el: "#comments",
events: {
+ "focus textarea": "focus",
+ "blur textarea": "blur",
},
initialize: function(){
@@ -35,5 +37,14 @@ var CommentsView = FormView.extend({
success: function(){
this.prependComment(comment)
- }
+ },
+
+ focus: function(){
+ app.typing = true
+ },
+
+ blur: function(){
+ app.typing = false
+ },
+
}) \ No newline at end of file