aboutsummaryrefslogtreecommitdiffstats
path: root/themes/default/template/include/autosize.inc.tpl
blob: ea18e6d3a6a39d45e673304dd6e963ee74c8fe24 (plain)
1
2
3
4
5
6
7
8
9
10
{combine_script id='jquery' load='async' path='themes/default/js/jquery.packed.js'}
{combine_script id='jquery.autogrow' load='async' require='jquery' path='themes/default/js/plugins/jquery.autogrow-textarea.js'}
{* Auto size and auto grow textarea *}
{footer_script require='jquery.autogrow'}{literal}
jQuery(document).ready(function(){
	jQuery('textarea').css('overflow-y', 'hidden');
	// Auto size and auto grow for all text area
	jQuery('textarea').autogrow();
});
{/literal}{/footer_script}