From 5f8dcf6f299b37f2c46fdbd9b047017fb7dea8fd Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 7 Sep 2015 08:03:08 -0400 Subject: audio player --- public/assets/js/lib/views/details/comments.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'public/assets/js/lib/views/details/comments.js') 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 -- cgit v1.2.3-70-g09d2