"
- img.outerHTML = strNewHTML
- i = i-1
- }
- }
- }
-window.attachEvent("onload", correctPNG);
diff --git a/prefs.js b/prefs.js
index c590c61f8..ed8d1679c 100644
--- a/prefs.js
+++ b/prefs.js
@@ -30,9 +30,6 @@ function feedlist_callback2(transport) {
caller_subop = false;
}
- if (typeof correctPNG != 'undefined') {
- correctPNG();
- }
notify("");
remove_splash();
@@ -44,9 +41,6 @@ function feedlist_callback2(transport) {
function filterlist_callback2(transport) {
var container = $('prefContent');
container.innerHTML=transport.responseText;
- if (typeof correctPNG != 'undefined') {
- correctPNG();
- }
notify("");
remove_splash();
}
@@ -84,9 +78,6 @@ function labellist_callback2(transport) {
init_label_inline_editor();
- if (typeof correctPNG != 'undefined') {
- correctPNG();
- }
notify("");
remove_splash();
diff --git a/tt-rss.js b/tt-rss.js
index 5551dc2d1..c310e267b 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -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 {
diff --git a/viewfeed.js b/viewfeed.js
index 5df91c330..cb1f31b14 100644
--- a/viewfeed.js
+++ b/viewfeed.js
@@ -218,10 +218,7 @@ function headlines_callback2(transport, feed_cur_page) {
f.innerHTML = "" + __('Could not update headlines (missing XML object)') + "
";
}
- if (typeof correctPNG != 'undefined') {
- correctPNG();
- }
-
+
if (_cdm_wd_timeout) window.clearTimeout(_cdm_wd_timeout);
if (!$("headlinesList") &&
@@ -399,10 +396,6 @@ function article_callback2(transport, id) {
var date = new Date();
last_article_view = date.getTime() / 1000;
- if (typeof correctPNG != 'undefined') {
- correctPNG();
- }
-
if (_reload_feedlist_after_view) {
setTimeout('updateFeedList(false, false)', 50);
_reload_feedlist_after_view = false;
@@ -468,10 +461,6 @@ function view(id) {
var crow = $("RROW-" + id);
var article_is_unread = crow.className.match("Unread");
- if (!async_counters_work) {
- query = query + "&csync=true";
- }
-
showArticleInHeadlines(id);
if (!cached_article) {
@@ -1836,7 +1825,13 @@ function cache_expire() {
}
function cache_flush() {
- article_cache = new Array();
+ if (db) {
+ db.execute("DELETE FROM cache");
+ } else if (has_local_storage()) {
+ localStorage.clear();
+ } else {
+ article_cache = new Array();
+ }
}
function cache_invalidate(id) {