fix crash on feedlist collapse, do not use _COLLAPSED_FEEDLIST pref

This commit is contained in:
Andrew Dolgov 2013-06-13 14:51:31 +04:00
parent 29b47c5ce8
commit b684a2e665
2 changed files with 0 additions and 6 deletions

View File

@ -1966,7 +1966,6 @@
$params["max_feed_id"] = (int) $max_feed_id; $params["max_feed_id"] = (int) $max_feed_id;
$params["num_feeds"] = (int) $num_feeds; $params["num_feeds"] = (int) $num_feeds;
$params["collapsed_feedlist"] = (int) get_pref("_COLLAPSED_FEEDLIST");
$params["hotkeys"] = get_hotkeys_map(); $params["hotkeys"] = get_hotkeys_map();
$params["csrf_token"] = $_SESSION["csrf_token"]; $params["csrf_token"] = $_SESSION["csrf_token"];

View File

@ -789,19 +789,14 @@ function collapse_feedlist() {
if (!Element.visible('feeds-holder')) { if (!Element.visible('feeds-holder')) {
Element.show('feeds-holder'); Element.show('feeds-holder');
Element.show('feeds-holder_splitter');
$("collapse_feeds_btn").innerHTML = "<<"; $("collapse_feeds_btn").innerHTML = "<<";
} else { } else {
Element.hide('feeds-holder'); Element.hide('feeds-holder');
Element.hide('feeds-holder_splitter');
$("collapse_feeds_btn").innerHTML = ">>"; $("collapse_feeds_btn").innerHTML = ">>";
} }
dijit.byId("main").resize(); dijit.byId("main").resize();
query = "?op=rpc&method=setpref&key=_COLLAPSED_FEEDLIST&value=true";
new Ajax.Request("backend.php", { parameters: query });
} catch (e) { } catch (e) {
exception_error("collapse_feedlist", e); exception_error("collapse_feedlist", e);
} }