aboutsummaryrefslogtreecommitdiffstats
path: root/template/yoga/include/autosize.inc.tpl
diff options
context:
space:
mode:
authorrub <rub@piwigo.org>2008-10-11 20:38:33 +0000
committerrub <rub@piwigo.org>2008-10-11 20:38:33 +0000
commit320d2a88ea6883b23923cd8592db3875d850a105 (patch)
tree73fc339e1e72d089a035d0cc387243ed7e7f9f15 /template/yoga/include/autosize.inc.tpl
parent933b820e0799e413ab680eba1753cec506108b1e (diff)
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
Diffstat (limited to '')
-rw-r--r--template/yoga/include/autosize.inc.tpl14
1 files changed, 14 insertions, 0 deletions
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}
+<script type="text/javascript">
+ jQuery().ready(function(){
+ jQuery('textarea').css('overflow-y', 'hidden');
+ // Auto size and auto grow for all text area
+ jQuery('textarea').autogrow();
+ });
+</script>
+{/literal}