From a5da1dbe32d794abb53902aad7ac8ad5684cd041 Mon Sep 17 00:00:00 2001 From: rub Date: Thu, 2 Oct 2008 20:57:32 +0000 Subject: use "include file" for grow text git-svn-id: http://piwigo.org/svn/trunk@2641 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/template/goto/cat_modify.tpl | 11 ++--------- admin/template/goto/configuration.tpl | 11 ++--------- admin/template/goto/element_set_unit.tpl | 11 +---------- admin/template/goto/include/autosize.inc.tpl | 2 ++ admin/template/goto/notification_by_mail.tpl | 2 -- admin/template/goto/picture_modify.tpl | 11 +---------- 6 files changed, 8 insertions(+), 40 deletions(-) (limited to 'admin/template') 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"} - - + +{include file='include/autosize.inc.tpl'}

{'title_edit_cat'|@translate}

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"} - - + +{include file='include/autosize.inc.tpl'}

{'title_configuration'|@translate} {$TABSHEET_TITLE}

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"} - - -

{'Batch management'|@translate}

{$CATEGORIES_NAV}

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'}
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 @@ {/literal} -{known_script id="jquery.growfield" src=$ROOT_URL|@cat:"template-common/lib/plugins/jquery.growfield.packed.js"} - - -

{'title_picmod'|@translate}

{'thumbnail'|@translate} -- cgit v1.2.3