diff options
Diffstat (limited to 'view/theme/diabook/theme.php')
-rwxr-xr-x | view/theme/diabook/theme.php | 12 |
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> |