diff options
author | Andrew Dolgov <[email protected]> | 2021-03-11 22:55:14 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-03-11 22:55:14 +0300 |
commit | 146b1e0feb861cd55fef317fe3f52ea974ead87d (patch) | |
tree | 21801be63e7674f4d2b2b950d23a7016aefab5c7 /js | |
parent | 6e0474a7c81ee0c397cc8c2c732a987dfee115c2 (diff) |
* shorten_expanded: use ResizeObserver (DUH)
* add HOOK_HEADLINES_RENDERED
Diffstat (limited to 'js')
-rwxr-xr-x | js/Headlines.js | 3 | ||||
-rw-r--r-- | js/PluginHost.js | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/js/Headlines.js b/js/Headlines.js index 4dad68db9..b35202bcb 100755 --- a/js/Headlines.js +++ b/js/Headlines.js @@ -436,6 +436,7 @@ const Headlines = { dijit.byId('main').resize(); + PluginHost.run(PluginHost.HOOK_HEADLINES_RENDERED); }, render: function (headlines, hl) { let row = null; @@ -832,6 +833,8 @@ const Headlines = { dijit.byId('main').resize(); + PluginHost.run(PluginHost.HOOK_HEADLINES_RENDERED); + Notify.close(); }, reverse: function () { diff --git a/js/PluginHost.js b/js/PluginHost.js index b54f1ece3..e7b4156e6 100644 --- a/js/PluginHost.js +++ b/js/PluginHost.js @@ -19,6 +19,7 @@ const PluginHost = { HOOK_COUNTERS_PROCESSED: 14, HOOK_HEADLINE_MUTATIONS: 15, HOOK_HEADLINE_MUTATIONS_SYNCED: 16, + HOOK_HEADLINES_RENDERED: 17, hooks: [], register: function (name, callback) { if (typeof(this.hooks[name]) == 'undefined') |