summaryrefslogtreecommitdiff
path: root/js/tt-rss.js
diff options
context:
space:
mode:
authorsupahgreg <[email protected]>2013-04-27 11:01:54 -0500
committersupahgreg <[email protected]>2013-04-27 11:10:21 -0500
commit8ceea119a8287568439a2a9d167b333f74a47e21 (patch)
tree22cb9ec576cc1609aaf753e238209e38bf43708e /js/tt-rss.js
parentabbe9c1f555baa7ae14b9424ff995edb16122d1c (diff)
Add JS PluginHost.HOOK_PARAMS_LOADED and PluginHost.HOOK_RUNTIME_INFO_LOADED to notify when interesting info has been created/updated.
Diffstat (limited to 'js/tt-rss.js')
-rw-r--r--js/tt-rss.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/tt-rss.js b/js/tt-rss.js
index a7518959c..2a741ab2d 100644
--- a/js/tt-rss.js
+++ b/js/tt-rss.js
@@ -753,6 +753,8 @@ function parse_runtime_info(data) {
init_params[k] = v;
notify('');
}
+
+ PluginHost.run(PluginHost.HOOK_RUNTIME_INFO_LOADED, data);
}
function collapse_feedlist() {
@@ -992,7 +994,7 @@ function handle_rpc_json(transport, scheduled_call) {
if (counters)
parse_counters(counters, scheduled_call);
- var runtime_info = reply['runtime-info'];;
+ var runtime_info = reply['runtime-info'];
if (runtime_info)
parse_runtime_info(runtime_info);