From a969b30bb13fc80f368a2f0913a7ac449ad65c62 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 13 Nov 2008 06:53:41 +0100 Subject: block cdmWatchdog() in Fresh feed --- localized_schema.php | 2 +- sanity_check.php | 2 +- schema/ttrss_schema_mysql.sql | 4 ++-- schema/ttrss_schema_pgsql.sql | 4 ++-- viewfeed.js | 1 + 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/localized_schema.php b/localized_schema.php index 623160ec1..1a543c7ec 100644 --- a/localized_schema.php +++ b/localized_schema.php @@ -39,7 +39,7 @@ __("Enable search toolbar"); __("Hide feeds with no unread messages"); __("Mark articles as read automatically"); - __("This option enables marking articles as read automatically in combined mode while you scroll article list."); + __("This option enables marking articles as read automatically in combined mode (except for Fresh articles feed) while you scroll article list."); __("On catchup show next feed"); __("When \"Mark as read\" button is clicked in toolbar, automatically open next feed with unread articles."); __("Open article links in new browser window"); diff --git a/sanity_check.php b/sanity_check.php index 30ed6ff24..e84fb9f86 100644 --- a/sanity_check.php +++ b/sanity_check.php @@ -2,7 +2,7 @@ require_once "functions.php"; define('EXPECTED_CONFIG_VERSION', 17); - define('SCHEMA_VERSION', 44); + define('SCHEMA_VERSION', 45); if (!file_exists("config.php")) { print __("Fatal Error: You forgot to copy diff --git a/schema/ttrss_schema_mysql.sql b/schema/ttrss_schema_mysql.sql index 889ca6a03..e4fdfcca3 100644 --- a/schema/ttrss_schema_mysql.sql +++ b/schema/ttrss_schema_mysql.sql @@ -219,7 +219,7 @@ create table ttrss_tags (id integer primary key auto_increment, create table ttrss_version (schema_version int not null) TYPE=InnoDB; -insert into ttrss_version values (44); +insert into ttrss_version values (45); create table ttrss_enclosures (id serial not null primary key, content_url text not null, @@ -305,7 +305,7 @@ insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id,help_ insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('CONFIRM_FEED_CATCHUP', 1, 'true', 'Confirm marking feed as read',3); insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id,help_text) values('CDM_AUTO_CATCHUP', 1, 'false', 'Mark articles as read automatically',2, -'This option enables marking articles as read automatically in combined mode while you scroll article list.'); +'This option enables marking articles as read automatically in combined mode (except for Fresh articles feed) while you scroll article list.'); insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('_DEFAULT_VIEW_MODE', 2, 'adaptive', '', 1); diff --git a/schema/ttrss_schema_pgsql.sql b/schema/ttrss_schema_pgsql.sql index 9d716f235..5b40fab33 100644 --- a/schema/ttrss_schema_pgsql.sql +++ b/schema/ttrss_schema_pgsql.sql @@ -196,7 +196,7 @@ create index ttrss_tags_owner_uid_index on ttrss_tags(owner_uid); create table ttrss_version (schema_version int not null); -insert into ttrss_version values (44); +insert into ttrss_version values (45); create table ttrss_enclosures (id serial not null primary key, content_url text not null, @@ -276,7 +276,7 @@ insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id,help_ insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('CONFIRM_FEED_CATCHUP', 1, 'true', 'Confirm marking feed as read',3); insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id,help_text) values('CDM_AUTO_CATCHUP', 1, 'false', 'Mark articles as read automatically',2, -'This option enables marking articles as read automatically in combined mode while you scroll article list.'); +'This option enables marking articles as read automatically in combined mode (except for Fresh articles feed) while you scroll article list.'); insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('_DEFAULT_VIEW_MODE', 2, 'adaptive', '', 1); diff --git a/viewfeed.js b/viewfeed.js index ba9b13e06..94554a422 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -220,6 +220,7 @@ function headlines_callback2(transport, active_feed_id, is_cat, feed_cur_page) { if (_cdm_wd_timeout) window.clearTimeout(_cdm_wd_timeout); if (!document.getElementById("headlinesList") && + getActiveFeedId() != -3 && getInitParam("cdm_auto_catchup") == 1) { debug("starting CDM watchdog"); _cdm_wd_timeout = window.setTimeout("cdmWatchdog()", 5000); -- cgit v1.2.3