aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2008-10-02 20:57:32 +0000
committerrub <rub@piwigo.org>2008-10-02 20:57:32 +0000
commita5da1dbe32d794abb53902aad7ac8ad5684cd041 (patch)
tree425ba85290b42e7c399c99224d9910e92a2185d8
parentf18985e15331c09085ddbdd66f6ea6a702fe3f4a (diff)
use "include file" for grow text
git-svn-id: http://piwigo.org/svn/trunk@2641 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/template/goto/cat_modify.tpl11
-rw-r--r--admin/template/goto/configuration.tpl11
-rw-r--r--admin/template/goto/element_set_unit.tpl11
-rw-r--r--admin/template/goto/include/autosize.inc.tpl2
-rw-r--r--admin/template/goto/notification_by_mail.tpl2
-rw-r--r--admin/template/goto/picture_modify.tpl11
-rw-r--r--plugins/AMenuManager/admin/amm_personalisedlist_edit.tpl4
7 files changed, 12 insertions, 40 deletions
diff --git a/admin/template/goto/cat_modify.tpl b/admin/template/goto/cat_modify.tpl
index de7e9d6a9..27b6be457 100644
--- a/admin/template/goto/cat_modify.tpl
+++ b/admin/template/goto/cat_modify.tpl
@@ -1,13 +1,6 @@
{* $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>{'title_edit_cat'|@translate}</h2>
diff --git a/admin/template/goto/configuration.tpl b/admin/template/goto/configuration.tpl
index d6c082429..0c851082d 100644
--- a/admin/template/goto/configuration.tpl
+++ b/admin/template/goto/configuration.tpl
@@ -1,13 +1,6 @@
{* $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>{'title_configuration'|@translate} {$TABSHEET_TITLE}</h2>
diff --git a/admin/template/goto/element_set_unit.tpl b/admin/template/goto/element_set_unit.tpl
index 6f2fc5569..e4805cf44 100644
--- a/admin/template/goto/element_set_unit.tpl
+++ b/admin/template/goto/element_set_unit.tpl
@@ -1,17 +1,8 @@
{* $Id$ *}
+{include file='include/autosize.inc.tpl'}
{include file='include/datepicker.inc.tpl'}
-{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>
-
<h2>{'Batch management'|@translate}</h2>
<h3>{$CATEGORIES_NAV}</h3>
diff --git a/admin/template/goto/include/autosize.inc.tpl b/admin/template/goto/include/autosize.inc.tpl
index 08fbe66ad..79152302c 100644
--- a/admin/template/goto/include/autosize.inc.tpl
+++ b/admin/template/goto/include/autosize.inc.tpl
@@ -1,4 +1,6 @@
{* $Id$ *}
+{known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"}
+{known_script id="jquery.ui" src=$ROOT_URL|@cat:"template-common/lib/ui/ui.core.packed.js"}
{known_script id="jquery.growfield" src=$ROOT_URL|@cat:"template-common/lib/plugins/jquery.growfield.packed.js"}
{* Auto size and auto grow textarea *}
diff --git a/admin/template/goto/notification_by_mail.tpl b/admin/template/goto/notification_by_mail.tpl
index eef0b3de4..375093d01 100644
--- a/admin/template/goto/notification_by_mail.tpl
+++ b/admin/template/goto/notification_by_mail.tpl
@@ -1,7 +1,5 @@
{* $Id$ *}
-{known_script id="jquery.growfield" src=$ROOT_URL|@cat:"template-common/lib/plugins/jquery.growfield.packed.js"}
-
{include file='include/autosize.inc.tpl'}
<div class="titrePage">
diff --git a/admin/template/goto/picture_modify.tpl b/admin/template/goto/picture_modify.tpl
index 8f2aacc03..2e4d161e7 100644
--- a/admin/template/goto/picture_modify.tpl
+++ b/admin/template/goto/picture_modify.tpl
@@ -1,5 +1,6 @@
{* $Id$ *}
+{include file='include/autosize.inc.tpl'}
{include file='include/datepicker.inc.tpl'}
{literal}
@@ -8,16 +9,6 @@
</script>
{/literal}
-{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>
-
<h2>{'title_picmod'|@translate}</h2>
<img src="{$TN_SRC}" alt="{'thumbnail'|@translate}" class="thumbnail" />
diff --git a/plugins/AMenuManager/admin/amm_personalisedlist_edit.tpl b/plugins/AMenuManager/admin/amm_personalisedlist_edit.tpl
index ddccc6b23..ca2516315 100644
--- a/plugins/AMenuManager/admin/amm_personalisedlist_edit.tpl
+++ b/plugins/AMenuManager/admin/amm_personalisedlist_edit.tpl
@@ -1,3 +1,7 @@
+{* $Id $ *}
+
+{include file='include/autosize.inc.tpl'}
+
{literal}
<script type="text/javascript">