aboutsummaryrefslogtreecommitdiffstats
path: root/template/yoga/include/autosize.inc.tpl
blob: 9b06727ffc20a055f935c79dd81c3f239053f625 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{* $Id$ *}
{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}