block HIDE_FEEDLIST (refs #196)

This commit is contained in:
Andrew Dolgov 2008-02-20 13:38:38 +01:00
parent 08f3bb157a
commit 0b6cffa868
3 changed files with 11 additions and 8 deletions

View File

@ -40,11 +40,11 @@ function viewfeed(feed, subop, is_cat, subop_param, skip_history, offset) {
cache_invalidate("F:" + feed); cache_invalidate("F:" + feed);
} }
if (getInitParam("theme") == "" || getInitParam("theme") == "compact") { /* if (getInitParam("theme") == "" || getInitParam("theme") == "compact") {
if (getInitParam("hide_feedlist") == 1) { if (getInitParam("hide_feedlist") == 1) {
Element.hide("feeds-holder"); Element.hide("feeds-holder");
} }
} } */
var force_nocache = false; var force_nocache = false;
@ -346,11 +346,13 @@ function feedlist_init() {
setTimeout("hide_footer()", 5000); setTimeout("hide_footer()", 5000);
} }
if (getInitParam("hide_feedlist") == 1) { /* if (getInitParam("hide_feedlist") == 1) {
init_hidden_feedlist(getInitParam("theme")); init_hidden_feedlist(getInitParam("theme"));
} else { } else {
init_collapsable_feedlist(getInitParam("theme")); init_collapsable_feedlist(getInitParam("theme"));
} } */
init_collapsable_feedlist(getInitParam("theme"));
} catch (e) { } catch (e) {
exception_error("feedlist/init", e); exception_error("feedlist/init", e);
@ -386,6 +388,7 @@ function hide_footer() {
} }
} }
/*
function init_hidden_feedlist(theme) { function init_hidden_feedlist(theme) {
try { try {
debug("init_hidden_feedlist"); debug("init_hidden_feedlist");
@ -421,7 +424,7 @@ function init_hidden_feedlist(theme) {
} catch (e) { } catch (e) {
exception_error("init_hidden_feedlist", e); exception_error("init_hidden_feedlist", e);
} }
} } */
function init_collapsable_feedlist(theme) { function init_collapsable_feedlist(theme) {
try { try {

View File

@ -10,8 +10,7 @@
function module_pref_prefs($link) { function module_pref_prefs($link) {
$subop = $_REQUEST["subop"]; $subop = $_REQUEST["subop"];
$prefs_blacklist = array(); $prefs_blacklist = array("HIDE_FEEDLIST");
//$prefs_blacklist = array("HIDE_FEEDLIST");
if ($subop == "change-password") { if ($subop == "change-password") {

View File

@ -740,6 +740,7 @@ function clearFeedArticles(feed_id) {
return false; return false;
} }
/*
function toggle_feedlist() { function toggle_feedlist() {
try { try {
debug("toggle_feedlist"); debug("toggle_feedlist");
@ -759,7 +760,7 @@ function toggle_feedlist() {
} catch (e) { } catch (e) {
exception_error(e, "toggle_feedlist"); exception_error(e, "toggle_feedlist");
} }
} } */
function collapse_feedlist() { function collapse_feedlist() {
try { try {