diff options
author | friendica <info@friendica.com> | 2011-11-22 16:00:05 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2011-11-22 16:00:05 -0800 |
commit | 53590d216691a572ede5e30dbc631a6cd0669c41 (patch) | |
tree | 420bd55497f265b5f43931d262f598d81fbb3d6a /view/head.tpl | |
parent | c568493f572bdc88cae288d5c43e9fb55361ce07 (diff) | |
download | volse-hubzilla-53590d216691a572ede5e30dbc631a6cd0669c41.tar.gz volse-hubzilla-53590d216691a572ede5e30dbc631a6cd0669c41.tar.bz2 volse-hubzilla-53590d216691a572ede5e30dbc631a6cd0669c41.zip |
rework show/hide comments
Diffstat (limited to 'view/head.tpl')
-rw-r--r-- | view/head.tpl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/view/head.tpl b/view/head.tpl index 752915b14..055c3cef5 100644 --- a/view/head.tpl +++ b/view/head.tpl @@ -44,6 +44,18 @@ } } + function showHideComments(id) { + if( $('#collapsed-comments-' + id).is(':visible')) { + $('#collapsed-comments-' + id).hide(); + $('#hide-comments-' + id).html('$showmore'); + } + else { + $('#collapsed-comments-' + id).show(); + $('#hide-comments-' + id).html('$showfewer'); + } + } + + </script> |