diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-09-07 08:03:08 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-09-07 08:03:08 -0400 |
| commit | 5f8dcf6f299b37f2c46fdbd9b047017fb7dea8fd (patch) | |
| tree | 8dcd47aa5f010a103bc21e61d151046da4bd5077 /public/assets/js/lib/views/details/comments.js | |
| parent | 694dbdf6ff3eef3e33fcbe95ebd676eea3353dcc (diff) | |
audio player
Diffstat (limited to 'public/assets/js/lib/views/details/comments.js')
| -rw-r--r-- | public/assets/js/lib/views/details/comments.js | 13 |
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 |
