mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
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:
@@ -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}
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user