From 320d2a88ea6883b23923cd8592db3875d850a105 Mon Sep 17 00:00:00 2001 From: rub Date: Sat, 11 Oct 2008 20:38:33 +0000 Subject: jQuery autosize: Prepare public section in order to use autosize on version after butterfly Merge trunk 2720:2721 into branch 2.0 git-svn-id: http://piwigo.org/svn/branches/2.0@2723 68402e56-0260-453c-a942-63ccdbb3a9ee --- template/yoga/include/autosize.inc.tpl | 14 ++++++++++++++ template/yoga/picture.tpl | 6 ++++++ template/yoga/upload.tpl | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 template/yoga/include/autosize.inc.tpl (limited to 'template') diff --git a/template/yoga/include/autosize.inc.tpl b/template/yoga/include/autosize.inc.tpl new file mode 100644 index 000000000..9b06727ff --- /dev/null +++ b/template/yoga/include/autosize.inc.tpl @@ -0,0 +1,14 @@ +{* $Id$ *} +{known_script id="jquery" src=$ROOT_URL|@cat:"template-common/lib/jquery.packed.js"} +{known_script id="jquery.autogrow" src=$ROOT_URL|@cat:"template-common/lib/plugins/jquery.autogrow-textarea.js"} + +{* Auto size and auto grow textarea *} +{literal} + +{/literal} diff --git a/template/yoga/picture.tpl b/template/yoga/picture.tpl index a2579355c..6b5468fff 100644 --- a/template/yoga/picture.tpl +++ b/template/yoga/picture.tpl @@ -1,4 +1,10 @@ {* $Id$ *} + +{* Example of resizeable *} +{* +{include file='include/autosize.inc.tpl'} +*} + {if isset($errors)}