1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-20 20:01:28 +00:00

js: code cleanup; move to async counter sending mode

This commit is contained in:
Andrew Dolgov
2010-11-10 14:48:35 +03:00
parent c4f7ba8018
commit 5225d4209e
8 changed files with 27 additions and 119 deletions

View File

@@ -3,7 +3,6 @@ var total_unread = 0;
var first_run = true;
var display_tags = false;
var global_unread = -1;
var active_title_text = "";
var current_subtitle = "";
var daemon_enabled = false;
//var _qfd_deleted_feed = 0;
@@ -233,10 +232,6 @@ function updateTitle(s) {
tmp = tmp + " - " + current_subtitle;
}
if (active_title_text.length > 0) {
tmp = tmp + " > " + active_title_text;
}
if (window.fluid) {
if (global_unread > 0) {
window.fluid.dockBadge = global_unread;
@@ -249,9 +244,6 @@ function updateTitle(s) {
}
function genericSanityCheck() {
// if (!Ajax.getTransport()) fatalError(1);
setCookie("ttrss_test", "TEST");
if (getCookie("ttrss_test") != "TEST") {
@@ -370,7 +362,6 @@ function init_second_stage() {
delCookie("ttrss_test");
// document.onresize = resize_headlines;
window.onresize=resize_headlines;
var toolbar = document.forms["main_toolbar_form"];
@@ -381,19 +372,6 @@ function init_second_stage() {
daemon_enabled = getInitParam("daemon_enabled") == 1;
feeds_sort_by_unread = getInitParam("feeds_sort_by_unread") == 1;
/* var fl = cache_find_param("FEEDLIST", getInitParam("num_feeds"));
if (fl) {
render_feedlist(fl);
if ($("feedList")) {
request_counters();
} else {
setTimeout('updateFeedList(false, false)', 50);
}
} else {
setTimeout('updateFeedList(false, false)', 50);
} */
setTimeout('updateFeedList(false, false)', 50);
console.log("second stage ok");
@@ -552,11 +530,6 @@ function quickMenuGo(opid) {
}
}
function updateFeedTitle(t) {
active_title_text = t;
updateTitle();
}
function toggleDispRead() {
try {