mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 18:55:55 +00:00
js: add collapsed and expanded hooks
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user