aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme/diabook/theme.php
diff options
context:
space:
mode:
authortommy tomson <thomas.bierey@gmx.de>2012-04-15 04:39:33 +0200
committertommy tomson <thomas.bierey@gmx.de>2012-04-15 04:39:33 +0200
commitdddf3307af24de71a8b6e52a984ba2f2e310c3b7 (patch)
treeb45087fc3bd2c69c7fd872106365d70aa4d0ce84 /view/theme/diabook/theme.php
parent170c15ceb9cac013146b7f9687b83a376a3a21ff (diff)
downloadvolse-hubzilla-dddf3307af24de71a8b6e52a984ba2f2e310c3b7.tar.gz
volse-hubzilla-dddf3307af24de71a8b6e52a984ba2f2e310c3b7.tar.bz2
volse-hubzilla-dddf3307af24de71a8b6e52a984ba2f2e310c3b7.zip
diabook-themes: added js for auto-growing comment-textareas
Diffstat (limited to 'view/theme/diabook/theme.php')
-rwxr-xr-xview/theme/diabook/theme.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/view/theme/diabook/theme.php b/view/theme/diabook/theme.php
index 4b4064a6c..8c5521eec 100755
--- a/view/theme/diabook/theme.php
+++ b/view/theme/diabook/theme.php
@@ -304,6 +304,9 @@ $a->page['htmlhead'] .= sprintf('<script language="JavaScript" src="%s"></script
$imageresizeJS = $a->get_baseurl($ssl_state)."/view/theme/diabook/js/jquery.ae.image.resize.js";
$a->page['htmlhead'] .= sprintf('<script language="JavaScript" src="%s" ></script>', $imageresizeJS);
+//load jquery.autogrow-textarea.js
+$autogrowJS = $a->get_baseurl($ssl_state)."/view/theme/diabook/js/jquery.autogrow.textarea.js";
+$a->page['htmlhead'] .= sprintf('<script language="JavaScript" src="%s" ></script>', $autogrowJS);
//js scripts
//comment-edit-wrapper on photo_view
@@ -329,6 +332,15 @@ $a->page['htmlhead'] .= '
</script>';
+$a->page['htmlhead'] .= '
+
+<script type="text/javascript">
+
+function tautogrow(id){
+ $("textarea#comment-edit-text-" +id).autogrow();
+ };
+ </script>';
+
$a->page['htmlhead'] .= '
<script>