aboutsummaryrefslogtreecommitdiffstats
path: root/admin/template/goto/include/autosize.inc.tpl
blob: 5529d07bdf2565fde60eb70df19a9d037ca8d5a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"}
{known_script id="jquery.autogrow" src=$ROOT_URL|@cat:"template-common/lib/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}