aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-02-09 12:01:55 +0100
committerMario Vavti <mario@mariovavti.com>2017-02-09 12:01:55 +0100
commit242eede258d47fe6f60d627f54cfb4ea82a71982 (patch)
treed9a304e68551f0764a6f5719295740c09807aedf /view/tpl
parent8dc349caaca378192051ee08e282de3bc1679c14 (diff)
downloadvolse-hubzilla-242eede258d47fe6f60d627f54cfb4ea82a71982.tar.gz
volse-hubzilla-242eede258d47fe6f60d627f54cfb4ea82a71982.tar.bz2
volse-hubzilla-242eede258d47fe6f60d627f54cfb4ea82a71982.zip
wrap resizing in document ready function
Diffstat (limited to 'view/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)