From: Andrew Dolgov Date: Sat, 30 Mar 2013 15:55:52 +0000 (+0400) Subject: make toggling combined mode work without reload X-Git-Tag: 1.7.6~127 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=22af12326989980dbed22c3bfcb73067d52804a8;p=tt-rss.git make toggling combined mode work without reload --- 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...");