eb07150f22
- 870, 877, 878: growfield plugins send wrong value when empty textarea. Now use another plugin for autogrow. git-svn-id: http://piwigo.org/svn/trunk@2653 68402e56-0260-453c-a942-63ccdbb3a9ee
14 lines
483 B
Smarty
14 lines
483 B
Smarty
{* $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}
|