mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-10-08 01:20:59 +02:00
js: code cleanup
This commit is contained in:
parent
8363f4e68b
commit
07bb58c721
47
feedlist.js
47
feedlist.js
@ -290,13 +290,6 @@ function feedlist_init() {
|
|||||||
console.log("T:" +
|
console.log("T:" +
|
||||||
getInitParam("cdm_auto_catchup") + " " + get_feed_unread(-3));
|
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());
|
toggle_sortable_feedlist(isFeedlistSortable());
|
||||||
|
|
||||||
} catch (e) {
|
} 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) {
|
function enable_selection(b) {
|
||||||
selection_disabled = !b;
|
selection_disabled = !b;
|
||||||
}
|
}
|
||||||
|
34
viewfeed.js
34
viewfeed.js
@ -433,40 +433,6 @@ function tPub(id) {
|
|||||||
return togglePub(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) {
|
function toggleMark(id, client_only) {
|
||||||
try {
|
try {
|
||||||
var query = "?op=rpc&id=" + id + "&subop=mark";
|
var query = "?op=rpc&id=" + id + "&subop=mark";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user