From 22af12326989980dbed22c3bfcb73067d52804a8 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 30 Mar 2013 19:55:52 +0400 Subject: [PATCH] make toggling combined mode work without reload --- index.php | 6 +----- js/tt-rss.js | 9 +++++++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/index.php b/index.php index 7c823027..f7962197 100644 --- a/index.php +++ b/index.php @@ -233,9 +233,7 @@
- -
- +
@@ -261,10 +259,8 @@ -
- diff --git a/js/tt-rss.js b/js/tt-rss.js index cb7c0ab2..6c921c25 100644 --- a/js/tt-rss.js +++ b/js/tt-rss.js @@ -480,8 +480,13 @@ function init() { new Ajax.Request("backend.php", { parameters: query, onComplete: function(transport) { - window.location.reload(); - } }); + setInitParam("combined_display_mode", + !getInitParam("combined_display_mode")); + + closeArticlePanel(); + viewCurrentFeed(); + + } }); }; hotkey_actions["toggle_cdm_expanded"] = function() { notify_progress("Loading, please wait..."); -- 2.39.5