Line | |
---|
1 | {known_script id="jquery" src=$ROOT_URL|@cat:"themes/default/js/jquery.packed.js"} |
---|
2 | {known_script id="jquery.autogrow" src=$ROOT_URL|@cat:"themes/default/js/plugins/jquery.autogrow-textarea.js"} |
---|
3 | |
---|
4 | {* Auto size and auto grow textarea *} |
---|
5 | {literal} |
---|
6 | <script type="text/javascript"> |
---|
7 | jQuery().ready(function(){ |
---|
8 | jQuery('textarea').css('overflow-y', 'hidden'); |
---|
9 | // Auto size and auto grow for all text area |
---|
10 | jQuery('textarea').autogrow(); |
---|
11 | }); |
---|
12 | </script> |
---|
13 | {/literal} |
---|
Note: See
TracBrowser
for help on using the repository browser.