aboutsummaryrefslogtreecommitdiffstats
path: root/admin/themes/default/template/include/autosize.inc.tpl
blob: 8f5c78c701a0f212093da95f7c947c46e151e1b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"}
{known_script id="jquery.autogrow" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.autogrow-textarea.js"}

{* Auto size and auto grow textarea *}
{literal}
<script type="text/javascript">
  jQuery().ready(function(){
    jQuery('textarea').css('overflow-y', 'hidden');
    // Auto size and auto grow for all text area
    jQuery('textarea').autogrow();
  });
</script>
{/literal}