mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 22:45:56 +00:00
js: add PluginHost.HOOK_COUNTERS_PROCESSED
This commit is contained in:
@@ -95,6 +95,8 @@ define(["dojo/_base/declare"], function (declare) {
|
|||||||
|
|
||||||
this.hideOrShowFeeds(App.getInitParam("hide_read_feeds") == 1);
|
this.hideOrShowFeeds(App.getInitParam("hide_read_feeds") == 1);
|
||||||
this._counters_prev = elems;
|
this._counters_prev = elems;
|
||||||
|
|
||||||
|
PluginHost.run(PluginHost.HOOK_COUNTERS_PROCESSED);
|
||||||
},
|
},
|
||||||
reloadCurrent: function(method) {
|
reloadCurrent: function(method) {
|
||||||
console.log("reloadCurrent: " + method);
|
console.log("reloadCurrent: " + method);
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ PluginHost = {
|
|||||||
HOOK_INIT_COMPLETE: 11,
|
HOOK_INIT_COMPLETE: 11,
|
||||||
HOOK_HEADLINE_RENDERED: 12,
|
HOOK_HEADLINE_RENDERED: 12,
|
||||||
HOOK_COUNTERS_RECEIVED: 13,
|
HOOK_COUNTERS_RECEIVED: 13,
|
||||||
|
HOOK_COUNTERS_PROCESSED: 14,
|
||||||
hooks: [],
|
hooks: [],
|
||||||
register: function (name, callback) {
|
register: function (name, callback) {
|
||||||
if (typeof(this.hooks[name]) == 'undefined')
|
if (typeof(this.hooks[name]) == 'undefined')
|
||||||
|
|||||||
Reference in New Issue
Block a user