js: add PluginHost.HOOK_COUNTERS_PROCESSED

This commit is contained in:
Andrew Dolgov 2019-05-06 09:50:46 +03:00
parent 2411cc8d1c
commit 6479c07324
2 changed files with 3 additions and 0 deletions

View File

@ -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);

View File

@ -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')