From 53590d216691a572ede5e30dbc631a6cd0669c41 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 22 Nov 2011 16:00:05 -0800 Subject: rework show/hide comments --- view/head.tpl | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'view/head.tpl') 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'); + } + } + + -- cgit v1.2.3