]> git.wh0rd.org - tt-rss.git/blobdiff - tt-rss.js
implement automatic precaching for next normal and unread feeds
[tt-rss.git] / tt-rss.js
index d613b7d49670f333139cef1ab2e8a424f56b244f..3e0e95919c413453fb4db532e06f7f205f163525 100644 (file)
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -330,7 +330,8 @@ function init_second_stage() {
 
                loading_set_progress(30);
 
-               if (has_local_storage())
+               // can't use cache_clear() here because viewfeed might not have initialized yet
+               if ('sessionStorage' in window && window['sessionStorage'] !== null)
                        sessionStorage.clear();
 
                console.log("second stage ok");
@@ -350,6 +351,10 @@ function quickMenuGo(opid) {
                        displayDlg("printTagCloud");
                }
 
+               if (opid == "qmcTagSelect") {
+                       displayDlg("printTagSelect");
+               }
+
                if (opid == "qmcSearch") {
                        search();
                        return;
@@ -561,12 +566,10 @@ function collapse_feedlist() {
 }
 
 function viewModeChanged() {
-       cache_flush();
        return viewCurrentFeed('')
 }
 
 function viewLimitChanged() {
-       cache_flush();
        return viewCurrentFeed('')
 }