summaryrefslogtreecommitdiff
path: root/tt-rss.js
diff options
context:
space:
mode:
Diffstat (limited to 'tt-rss.js')
-rw-r--r--tt-rss.js23
1 files changed, 15 insertions, 8 deletions
diff --git a/tt-rss.js b/tt-rss.js
index 861c9abb8..56351332e 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -27,20 +27,26 @@ function tagsAreDisplayed() {
return display_tags;
}
-function toggleTags() {
- display_tags = !display_tags;
+function toggleTags(show_all) {
var p = document.getElementById("dispSwitchPrompt");
- if (display_tags) {
+ if (!show_all && !display_tags) {
+ displayDlg("printTagCloud");
+ } else if (show_all) {
+ closeInfoBox();
+ display_tags = true;
p.innerHTML = __("display feeds");
- } else {
- p.innerHTML = __("display tags");
+ notify_progress("Loading, please wait...");
+ updateFeedList();
+ } else if (display_tags) {
+ display_tags = false;
+ p.innerHTML = __("tag cloud");
+ notify_progress("Loading, please wait...");
+ updateFeedList();
}
-
- notify_progress("Loading, please wait...");
- updateFeedList();
+ return false;
}
function dlg_frefresh_callback() {
@@ -514,6 +520,7 @@ function quickMenuGo(opid) {
if (opid == "qmcAddFilter") {
displayDlg("quickAddFilter", getActiveFeedId());
}
+
} catch (e) {
exception_error("quickMenuGo", e);
}