From a04c8e8dc2efd08e6f4d828d93099bacf02d421d Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 18 Oct 2007 03:55:44 +0100 Subject: add collapsed CDM mode --- viewfeed.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'viewfeed.js') diff --git a/viewfeed.js b/viewfeed.js index 273e2d91b..24584e49f 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -1355,3 +1355,25 @@ function catchupRelativeToArticle(below) { exception_error("catchupRelativeToArticle", e); } } + +function cdmExpandArticle(a_id) { + try { + var id = 'CICD-' + a_id; + + Effect.Appear(id, {duration : 0.5, + beforeStart: function(effect) { + var h_id = 'CICH-' + a_id; + var h_elem = document.getElementById(h_id); + if (h_elem) { h_elem.style.display = "none"; } + + toggleUnread(a_id, 0); + }}); + + + } catch (e) { + exception_error("appearBlockElementF", e); + } + +} + + -- cgit v1.2.3