Add page onload
This commit is contained in:
parent
a25fbd518a
commit
6919cb597b
|
@ -53,6 +53,7 @@
|
|||
<script>
|
||||
$.material.init();
|
||||
|
||||
$( document ).ready(function() {
|
||||
jQuery.each(jQuery('textarea[data-autoresize]'), function() {
|
||||
var offset = this.offsetHeight - this.clientHeight;
|
||||
|
||||
|
@ -60,7 +61,7 @@
|
|||
jQuery(el).css('height', 'auto').css('height', el.scrollHeight + offset);
|
||||
};
|
||||
jQuery(this).on('keyup input', function() { resizeTextarea(this); }).removeAttr('data-autoresize');
|
||||
});
|
||||
});});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
|
Loading…
Reference in New Issue