aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/notes.tpl
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-01-05 12:19:14 -0800
committerzotlabs <mike@macgirvin.com>2017-01-05 12:19:14 -0800
commita87d12f167ebed14736b7480d2c32be1e003c409 (patch)
tree3de27c400dcfbc20e1343fd0e983cccff7c6f493 /view/tpl/notes.tpl
parentec18c3770bd1ff444713c94f8405b75692848274 (diff)
parent3e0ea9727fd73daafea5597e76fab8eed252f215 (diff)
downloadvolse-hubzilla-a87d12f167ebed14736b7480d2c32be1e003c409.tar.gz
volse-hubzilla-a87d12f167ebed14736b7480d2c32be1e003c409.tar.bz2
volse-hubzilla-a87d12f167ebed14736b7480d2c32be1e003c409.zip
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev_merge
Diffstat (limited to 'view/tpl/notes.tpl')
-rw-r--r--view/tpl/notes.tpl7
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)