aboutsummaryrefslogtreecommitdiffstats
path: root/admin/template/goto/include/autosize.inc.tpl
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/include/autosize.inc.tpl
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
1 files changed, 14 insertions, 0 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}