diff options
Diffstat (limited to 'view/tpl')
-rw-r--r-- | view/tpl/notes.tpl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/view/tpl/notes.tpl b/view/tpl/notes.tpl index f9fed1feb..c4da3783b 100644 --- a/view/tpl/notes.tpl +++ b/view/tpl/notes.tpl @@ -5,9 +5,10 @@ var noteSaveTimer = null; var noteText = $('#note-text'); - $(document).ready(function(){ - noteText.height(noteText[0].scrollHeight); - }); + noteText.on('change keyup keydown paste cut', function () { + $(this).height(0).height(this.scrollHeight); + $(document.body).trigger("sticky_kit:recalc"); + }).change(); $(document).on('focusout',"#note-text",function(e){ if(noteSaveTimer) |