diff options
Diffstat (limited to 'js/Feeds.js')
-rw-r--r-- | js/Feeds.js | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/js/Feeds.js b/js/Feeds.js index ad2edf8d5..2d475bcb6 100644 --- a/js/Feeds.js +++ b/js/Feeds.js @@ -117,15 +117,21 @@ const Feeds = { }, reloadCurrent: function(method) { if (this.getActive() != undefined) { - console.log("reloadCurrent: " + method); + console.log("reloadCurrent", this.getActive(), this.activeIsCat(), method); this.open({feed: this.getActive(), is_cat: this.activeIsCat(), method: method}); } - return false; // block unneeded form submits }, openDefaultFeed: function() { this.open({feed: this._default_feed_id}); }, + onViewModeChanged: function() { + // TODO: is this still needed? + App.find("body").setAttribute("view-mode", + dijit.byId("toolbar-main").getValues().view_mode); + + return Feeds.reloadCurrent(''); + }, openNextUnread: function() { const is_cat = this.activeIsCat(); const nuf = this.getNextUnread(this.getActive(), is_cat); @@ -369,10 +375,7 @@ const Feeds = { }, 10 * 1000); } - //Form.enable("toolbar-main"); - - let query = Object.assign({op: "feeds", method: "view", feed: feed}, - dojo.formToObject("toolbar-main")); + let query = {...{op: "feeds", method: "view", feed: feed}, ...dojo.formToObject("toolbar-main")}; if (method) query.m = method; |