]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix crash on feedlist collapse, do not use _COLLAPSED_FEEDLIST pref
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 13 Jun 2013 10:51:31 +0000 (14:51 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Thu, 13 Jun 2013 10:51:31 +0000 (14:51 +0400)
include/functions.php
js/tt-rss.js

index f05b5cb408ddfd274be3869729aa60db6a02cc1b..344d66ae1d6843445a763d69ba80430252ee0c57 100644 (file)
                $params["max_feed_id"] = (int) $max_feed_id;
                $params["num_feeds"] = (int) $num_feeds;
 
-               $params["collapsed_feedlist"] = (int) get_pref("_COLLAPSED_FEEDLIST");
                $params["hotkeys"] = get_hotkeys_map();
 
                $params["csrf_token"] = $_SESSION["csrf_token"];
index 9a6db235998b139e6f6be0f68e70c3987850cc88..ee3156c2887c3b216e2c5ec2cbbaf3cf500642e3 100644 (file)
@@ -789,19 +789,14 @@ function collapse_feedlist() {
 
                if (!Element.visible('feeds-holder')) {
                        Element.show('feeds-holder');
-                       Element.show('feeds-holder_splitter');
                        $("collapse_feeds_btn").innerHTML = "&lt;&lt;";
                } else {
                        Element.hide('feeds-holder');
-                       Element.hide('feeds-holder_splitter');
                        $("collapse_feeds_btn").innerHTML = "&gt;&gt;";
                }
 
                dijit.byId("main").resize();
 
-               query = "?op=rpc&method=setpref&key=_COLLAPSED_FEEDLIST&value=true";
-               new Ajax.Request("backend.php", { parameters: query });
-
        } catch (e) {
                exception_error("collapse_feedlist", e);
        }