summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-05-06 09:50:46 +0300
committerAndrew Dolgov <[email protected]>2019-05-06 09:50:46 +0300
commit6479c073244b4689c24ddd14febf3bfa7d0d6ed3 (patch)
treeff9ca336145a48d213dcd7cca3edd52975d25e58 /js
parent2411cc8d1c8478c1ae7e850b10e6431c2b330678 (diff)
js: add PluginHost.HOOK_COUNTERS_PROCESSED
Diffstat (limited to 'js')
-rw-r--r--js/Feeds.js2
-rw-r--r--js/PluginHost.js1
2 files changed, 3 insertions, 0 deletions
diff --git a/js/Feeds.js b/js/Feeds.js
index 8c1886263..53f2efd3e 100644
--- a/js/Feeds.js
+++ b/js/Feeds.js
@@ -95,6 +95,8 @@ define(["dojo/_base/declare"], function (declare) {
this.hideOrShowFeeds(App.getInitParam("hide_read_feeds") == 1);
this._counters_prev = elems;
+
+ PluginHost.run(PluginHost.HOOK_COUNTERS_PROCESSED);
},
reloadCurrent: function(method) {
console.log("reloadCurrent: " + method);
diff --git a/js/PluginHost.js b/js/PluginHost.js
index c82d08971..06b79ac5a 100644
--- a/js/PluginHost.js
+++ b/js/PluginHost.js
@@ -14,6 +14,7 @@ PluginHost = {
HOOK_INIT_COMPLETE: 11,
HOOK_HEADLINE_RENDERED: 12,
HOOK_COUNTERS_RECEIVED: 13,
+ HOOK_COUNTERS_PROCESSED: 14,
hooks: [],
register: function (name, callback) {
if (typeof(this.hooks[name]) == 'undefined')