diff options
Diffstat (limited to 'js/tt-rss.js')
-rw-r--r-- | js/tt-rss.js | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/js/tt-rss.js b/js/tt-rss.js index 8e5dac811..890e35b55 100644 --- a/js/tt-rss.js +++ b/js/tt-rss.js @@ -7,7 +7,6 @@ let Filters; let Feeds; let Headlines; let Article; -let ArticleCache; let PluginHost; const Plugins = {}; @@ -54,7 +53,6 @@ require(["dojo/_base/kernel", "fox/Feeds", "fox/Headlines", "fox/Article", - "fox/ArticleCache", "fox/FeedStoreModel", "fox/FeedTree"], function (dojo, declare, ready, parser, AppBase) { @@ -119,8 +117,6 @@ require(["dojo/_base/kernel", } }); - Cookie.delete("ttrss_test"); - const toolbar = document.forms["toolbar-main"]; dijit.getEnclosingWidget(toolbar.view_mode).attr('value', @@ -138,8 +134,6 @@ require(["dojo/_base/kernel", App.setLoadingProgress(50); - ArticleCache.clear(); - this._widescreen_mode = App.getInitParam("widescreen"); this.switchPanelMode(this._widescreen_mode); @@ -151,6 +145,9 @@ require(["dojo/_base/kernel", } console.log("second stage ok"); + + PluginHost.run(PluginHost.HOOK_INIT_COMPLETE, null); + }, updateTitle: function() { let tmp = "Tiny Tiny RSS"; @@ -162,7 +159,6 @@ require(["dojo/_base/kernel", document.title = tmp; }, onViewModeChanged: function() { - ArticleCache.clear(); return Feeds.reloadCurrent(''); }, isCombinedMode: function() { @@ -184,7 +180,7 @@ require(["dojo/_base/kernel", } }, switchPanelMode: function(wide) { - if (App.isCombinedMode()) return; + //if (App.isCombinedMode()) return; const article_id = Article.getActive(); @@ -470,6 +466,9 @@ require(["dojo/_base/kernel", Feeds.reloadCurrent(); }); }; + this.hotkey_actions["toggle_night_mode"] = function () { + App.toggleNightMode(); + }; }, onActionSelected: function(opid) { switch (opid) { @@ -535,6 +534,9 @@ require(["dojo/_base/kernel", alert(__("Widescreen is not available in combined mode.")); } break; + case "qmcToggleNightMode": + App.toggleNightMode(); + break; case "qmcHKhelp": App.helpDialog("main"); break; |