From 2779e22bf5eb8eab0af91138e0d613f604a60a1a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 25 Apr 2013 10:09:40 +0400 Subject: js: add collapsed and expanded hooks --- js/viewfeed.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'js/viewfeed.js') diff --git a/js/viewfeed.js b/js/viewfeed.js index 96919dc01..da869d92a 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -1416,6 +1416,8 @@ function cdmCollapseArticle(event, id) { } if (event) Event.stop(event); + + PluginHost.run(PluginHost.HOOK_ARTICLE_COLLAPSED, id); } } catch (e) { @@ -1503,6 +1505,8 @@ function cdmExpandArticle(id, noexpand) { toggleSelected(id); $("RROW-" + id).addClassName("active"); + PluginHost.run(PluginHost.HOOK_ARTICLE_EXPANDED, id); + } catch (e) { exception_error("cdmExpandArticle", e); } -- cgit v1.2.3-54-g00ecf