Last change
on this file since 2888 was
2723,
checked in by rub, 16 years ago
|
jQuery autosize:
Prepare public section in order to use autosize on version after butterfly
Merge trunk 2720:2721 into branch 2.0
|
-
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 2723 2008-10-11 20:38:33Z 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.