From 07bb58c7217cdcdc89d7209780c0f6b952e70e7e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 16 Nov 2010 13:10:57 +0300 Subject: js: code cleanup --- feedlist.js | 47 ----------------------------------------------- viewfeed.js | 34 ---------------------------------- 2 files changed, 81 deletions(-) diff --git a/feedlist.js b/feedlist.js index 071887a1b..4171c633d 100644 --- a/feedlist.js +++ b/feedlist.js @@ -290,13 +290,6 @@ function feedlist_init() { console.log("T:" + getInitParam("cdm_auto_catchup") + " " + get_feed_unread(-3)); - if (getInitParam("theme") == "" || - getInitParam("theme_options").match("hide_footer")) { - setTimeout("hide_footer()", 5000); - } - - //init_collapsable_feedlist(getInitParam("theme")); - toggle_sortable_feedlist(isFeedlistSortable()); } catch (e) { @@ -304,46 +297,6 @@ function feedlist_init() { } } -/* function hide_footer_af(effect) { - try { - var c = $("content-frame"); - - if (c) { - c.style.bottom = "0px"; - - var ioa = $("inline_orig_article"); - - if (ioa) { - ioa.height = c.offsetHeight; - } - - } else { - var h = $("headlines-frame"); - - if (h) { - h.style.bottom = "0px"; - } - } - - } catch (e) { - exception_error("hide_footer_af", e); - } -} */ - -function hide_footer() { - try { - /* if (Element.visible("footer")) { - - Element.hide("footer"); - dijit.byId("main").resize(); - - //new Effect.Fade("footer", { afterFinish: hide_footer_af }); - } */ - } catch (e) { - exception_error("hide_footer", e); - } -} - function enable_selection(b) { selection_disabled = !b; } diff --git a/viewfeed.js b/viewfeed.js index 91502279a..b90ce6552 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -433,40 +433,6 @@ function tPub(id) { return togglePub(id); } -function tMark_afh_off(effect) { - try { - var elem = effect.effects[0].element; - - //console.log("tMark_afh_off : " + elem.id); - - if (elem) { - elem.src = elem.src.replace("mark_set", "mark_unset"); - elem.alt = __("Star article"); - Element.show(elem); - } - - } catch (e) { - exception_error("tMark_afh_off", e); - } -} - -function tPub_afh_off(effect) { - try { - var elem = effect.effects[0].element; - - //console.log("tPub_afh_off : " + elem.id); - - if (elem) { - elem.src = elem.src.replace("pub_set", "pub_unset"); - elem.alt = __("Publish article"); - Element.show(elem); - } - - } catch (e) { - exception_error("tPub_afh_off", e); - } -} - function toggleMark(id, client_only) { try { var query = "?op=rpc&id=" + id + "&subop=mark"; -- cgit v1.2.3