aboutsummaryrefslogtreecommitdiffstats
path: root/admin/template/goto
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2008-09-28 21:02:22 +0000
committerrub <rub@piwigo.org>2008-09-28 21:02:22 +0000
commitc50a7dca1ef1c9f47b0b3716a55a4a1341ede15e (patch)
treebf5c4580695bec5f3ebfb3fa09df112f37ae9479 /admin/template/goto
parent9ae445678c1024c8c242c57a4ee326b5e5c4cfb3 (diff)
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
Diffstat (limited to '')
-rw-r--r--admin/template/goto/include/autosize.inc.tpl14
-rw-r--r--admin/template/goto/notification_by_mail.tpl9
2 files changed, 16 insertions, 7 deletions
diff --git a/admin/template/goto/include/autosize.inc.tpl b/admin/template/goto/include/autosize.inc.tpl
new file mode 100644
index 000000000..08fbe66ad
--- /dev/null
+++ b/admin/template/goto/include/autosize.inc.tpl
@@ -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}
diff --git a/admin/template/goto/notification_by_mail.tpl b/admin/template/goto/notification_by_mail.tpl
index 6f6a57a87..eef0b3de4 100644
--- a/admin/template/goto/notification_by_mail.tpl
+++ b/admin/template/goto/notification_by_mail.tpl
@@ -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>