aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/notes.tpl
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-03-08 09:39:46 +0100
committerMario Vavti <mario@mariovavti.com>2017-03-08 09:39:46 +0100
commitbc2b948f1f6e62b1c277a4042200bb6678956f3f (patch)
tree8586c30e495607eee23f16c0aad40974f0711275 /view/tpl/notes.tpl
parent23e3e2c50499fab52769929a448e73012fd915af (diff)
parentff9442474d07cce24c8f66db39ec34471c3874a2 (diff)
downloadvolse-hubzilla-bc2b948f1f6e62b1c277a4042200bb6678956f3f.tar.gz
volse-hubzilla-bc2b948f1f6e62b1c277a4042200bb6678956f3f.tar.bz2
volse-hubzilla-bc2b948f1f6e62b1c277a4042200bb6678956f3f.zip
Merge branch 2.2RC2.2
Diffstat (limited to 'view/tpl/notes.tpl')
-rw-r--r--view/tpl/notes.tpl10
1 files changed, 6 insertions, 4 deletions
diff --git a/view/tpl/notes.tpl b/view/tpl/notes.tpl
index c4da3783b..c6d5d8a73 100644
--- a/view/tpl/notes.tpl
+++ b/view/tpl/notes.tpl
@@ -5,10 +5,12 @@
var noteSaveTimer = null;
var noteText = $('#note-text');
- noteText.on('change keyup keydown paste cut', function () {
- $(this).height(0).height(this.scrollHeight);
- $(document.body).trigger("sticky_kit:recalc");
- }).change();
+ $(document).ready(function(e){
+ noteText.on('change keyup keydown paste cut', function () {
+ noteText.height(0).height(noteText[0].scrollHeight);
+ $(document.body).trigger("sticky_kit:recalc");
+ }).change();
+ });
$(document).on('focusout',"#note-text",function(e){
if(noteSaveTimer)