aboutsummaryrefslogtreecommitdiffstats
path: root/template/yoga/include/autosize.inc.tpl
blob: 0d7e55fcb3c19f58a1b23719f5825038e48c95ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{* $Id: /piwigo/trunk/template/yoga/include/autosize.inc.tpl 6561 2008-10-11T20:34:28.889830Z rub  $ *}
{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}