aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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>