diff options
author | Andrew Dolgov <[email protected]> | 2022-06-05 11:45:13 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2022-06-05 11:47:21 +0300 |
commit | dd983e5de1e28218329854b1033dcd2b848229bf (patch) | |
tree | 0c5aa8b15b80a51860036e3aed2c478adfd6dfe3 /js | |
parent | fc847121352d4b0e54e046473420d35cac255a62 (diff) |
prefs: move external filter tree onload method (which checks for inactive feeds, etc.) to FilterTree class
Diffstat (limited to 'js')
-rw-r--r-- | js/PrefFeedTree.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/js/PrefFeedTree.js b/js/PrefFeedTree.js index 013c01262..0585173c9 100644 --- a/js/PrefFeedTree.js +++ b/js/PrefFeedTree.js @@ -5,6 +5,16 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree", "dojo/_b function (declare, domConstruct, checkBoxTree, array, cookie) { return declare("fox.PrefFeedTree", lib.CheckBoxTree, { + postCreate: function() { + this.inherited(arguments); + + const tmph = dojo.connect(this, 'onLoad', () => { + dojo.disconnect(tmph); + + this.checkInactiveFeeds(); + this.checkErrorFeeds(); + }); + }, // save state in localStorage instead of cookies // reference: https://stackoverflow.com/a/27968996 _saveExpandedNodes: function(){ |