aboutsummaryrefslogtreecommitdiffstats
path: root/view/head.tpl
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2011-11-22 16:00:05 -0800
committerfriendica <info@friendica.com>2011-11-22 16:00:05 -0800
commit53590d216691a572ede5e30dbc631a6cd0669c41 (patch)
tree420bd55497f265b5f43931d262f598d81fbb3d6a /view/head.tpl
parentc568493f572bdc88cae288d5c43e9fb55361ce07 (diff)
downloadvolse-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.tpl12
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>