source: trunk/template/yoga/include/autosize.inc.tpl @ 2721

Last change on this file since 2721 was 2721, checked in by rub, 16 years ago

jQuery autosize:
Prepare public section in order to use autosize on version after butterfly

  • Property svn:eol-style set to LF
  • Property svn:keywords set to Author Date Id Revision
File size: 483 bytes
Line 
1{* $Id: autosize.inc.tpl 2721 2008-10-11 20:34:28Z rub $ *}
2{known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"}
3{known_script id="jquery.autogrow" src=$ROOT_URL|@cat:"template-common/lib/plugins/jquery.autogrow-textarea.js"}
4
5{* Auto size and auto grow textarea *}
6{literal}
7<script type="text/javascript">
8  jQuery().ready(function(){
9    jQuery('textarea').css('overflow-y', 'hidden');
10    // Auto size and auto grow for all text area
11    jQuery('textarea').autogrow();
12  });
13</script>
14{/literal}
Note: See TracBrowser for help on using the repository browser.