diff options
author | Phil Hughes <me@iamphill.com> | 2016-03-30 12:19:58 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-04-04 12:48:49 +0300 |
commit | af3284d98b68dedbdab3821fa99ee53437ee3d32 (patch) | |
tree | b25b2c624ff743c52a56aa8d6ca2933aa0009a8f /app/assets/javascripts/notes.js.coffee | |
parent | 38e32780a85463e862e5847a436be6819e28c81c (diff) |
Focus style for comment form
Diffstat (limited to 'app/assets/javascripts/notes.js.coffee')
-rw-r--r-- | app/assets/javascripts/notes.js.coffee | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/assets/javascripts/notes.js.coffee b/app/assets/javascripts/notes.js.coffee index 864156cb718..40326ec96a8 100644 --- a/app/assets/javascripts/notes.js.coffee +++ b/app/assets/javascripts/notes.js.coffee @@ -288,6 +288,12 @@ class @Notes else previewButton.removeClass("turn-on").addClass "turn-off" + textarea.on 'focus', -> + $(this).closest('.md-area').addClass 'is-focused' + + textarea.on 'blur', -> + $(this).closest('.md-area').removeClass 'is-focused' + autosize(textarea) new Autosave textarea, [ |