wrap resizing in document ready function
This commit is contained in:
parent
8dc349caac
commit
242eede258
@ -5,10 +5,12 @@
|
|||||||
var noteSaveTimer = null;
|
var noteSaveTimer = null;
|
||||||
var noteText = $('#note-text');
|
var noteText = $('#note-text');
|
||||||
|
|
||||||
noteText.on('change keyup keydown paste cut', function () {
|
$(document).ready(function(e){
|
||||||
$(this).height(0).height(this.scrollHeight);
|
noteText.on('change keyup keydown paste cut', function () {
|
||||||
$(document.body).trigger("sticky_kit:recalc");
|
noteText.height(0).height(noteText[0].scrollHeight);
|
||||||
}).change();
|
$(document.body).trigger("sticky_kit:recalc");
|
||||||
|
}).change();
|
||||||
|
});
|
||||||
|
|
||||||
$(document).on('focusout',"#note-text",function(e){
|
$(document).on('focusout',"#note-text",function(e){
|
||||||
if(noteSaveTimer)
|
if(noteSaveTimer)
|
||||||
|
Reference in New Issue
Block a user