aboutsummaryrefslogtreecommitdiffstats
path: root/admin/themes/default/template/include/autosize.inc.tpl
blob: e21162f9e4827787508f69d17558e622d9cc0e70 (plain)
1
2
3
4
5
6
7
8
9
10
{combine_script id='jquery' load='async' path='themes/default/js/jquery.min.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}