jQuery autosize:

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

Merge trunk 2720:2721 into branch 2.0


git-svn-id: http://piwigo.org/svn/branches/2.0@2723 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rub
2008-10-11 20:38:33 +00:00
parent 933b820e07
commit 320d2a88ea
3 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
{* $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}

View File

@@ -1,4 +1,10 @@
{* $Id$ *}
{* Example of resizeable *}
{*
{include file='include/autosize.inc.tpl'}
*}
{if isset($errors)}
<div class="errors">
<ul>

View File

@@ -1,5 +1,10 @@
{* $Id$ *}
{* Example of resizeable *}
{*
{include file='include/autosize.inc.tpl'}
*}
<div id="content" class="content">
<div class="titrePage">