summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2019-05-07 19:10:11 +0300
committerAndrew Dolgov <[email protected]>2019-05-07 19:10:11 +0300
commit3bf40f3ba8009958ffcd1cd1a8c68d96098daa63 (patch)
tree2f1010cc1847854d6e481bb65fb6119f24b68b8a /js
parentd09aad7c80f32afc77db5877b468a7ad4c2caab5 (diff)
_active_feed_id: set to undefined on startup to prevent unneeded Feed.open() if reloadCurrent is called because of a non-default main toolbar value
Diffstat (limited to 'js')
-rw-r--r--js/Feeds.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/Feeds.js b/js/Feeds.js
index 524045eb2..cb3cc3612 100644
--- a/js/Feeds.js
+++ b/js/Feeds.js
@@ -3,7 +3,7 @@
define(["dojo/_base/declare"], function (declare) {
Feeds = {
counters_last_request: 0,
- _active_feed_id: 0,
+ _active_feed_id: undefined,
_active_feed_is_cat: false,
infscroll_in_progress: 0,
infscroll_disabled: 0,
@@ -99,9 +99,9 @@ define(["dojo/_base/declare"], function (declare) {
PluginHost.run(PluginHost.HOOK_COUNTERS_PROCESSED);
},
reloadCurrent: function(method) {
- console.log("reloadCurrent: " + method);
-
if (this.getActive() != undefined) {
+ console.log("reloadCurrent: " + method);
+
this.open({feed: this.getActive(), is_cat: this.activeIsCat(), method: method});
}
return false; // block unneeded form submits