js: code cleanup

This commit is contained in:
Andrew Dolgov 2010-11-16 13:10:57 +03:00
parent 8363f4e68b
commit 07bb58c721
2 changed files with 0 additions and 81 deletions

View 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;
}

View 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";