]> git.wh0rd.org Git - tt-rss.git/commitdiff
js: code cleanup
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 16 Nov 2010 10:10:57 +0000 (13:10 +0300)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Tue, 16 Nov 2010 10:10:57 +0000 (13:10 +0300)
feedlist.js
viewfeed.js

index 071887a1b5cbaf40cef170fe30df1aa266589089..4171c633daa0998346203d8d0b252c39a1e2ef72 100644 (file)
@@ -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;
 }
index 91502279a129321b57bf2516c6f184d4314c742b..b90ce65525e25870e5772381e9a4df1d3e8e3222 100644 (file)
@@ -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";