jQuery use.

Purpose of include for template. More easy to use on plugin.

"include file" don't work on include file? => double declaration

git-svn-id: http://piwigo.org/svn/trunk@2623 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rub
2008-09-28 21:02:22 +00:00
parent 9ae445678c
commit c50a7dca1e
2 changed files with 16 additions and 7 deletions
@@ -0,0 +1,14 @@
{* $Id$ *}
{known_script id="jquery.growfield" src=$ROOT_URL|@cat:"template-common/lib/plugins/jquery.growfield.packed.js"}
{* Auto size and auto grow textarea *}
{literal}
<script type="text/javascript">
jQuery().ready(function(){
// Auto size and auto grow for all text area
jQuery("TEXTAREA").growfield({
animate: false
});
});
</script>
{/literal}
+2 -7
View File
@@ -1,13 +1,8 @@
{* $Id$ *}
{known_script id="jquery.growfield" src=$ROOT_URL|@cat:"template-common/lib/plugins/jquery.growfield.packed.js"}
<script type="text/javascript">
jQuery().ready(function(){ldelim}
jQuery("textarea").growfield({ldelim}
animate: false
});
});
</script>
{include file='include/autosize.inc.tpl'}
<div class="titrePage">
<h2>{'nbm_send_mail_to_users'|@translate} {$TABSHEET_TITLE}</h2>