aboutsummaryrefslogtreecommitdiffstats
path: root/themes/default/template/include/autosize.inc.tpl
blob: fd2b2ca759d00cbaec33aa5a1a57c2cce00fc856 (plain)
1
2
3
4
5
6
7
8
9
{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}