From: Andrew Dolgov Date: Mon, 14 May 2007 08:31:54 +0000 (+0100) Subject: new hidden param, _INFOBOX_DISABLE_OVERLAY X-Git-Tag: schema_freeze_for_1.2.11~57 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=465ff90b4ac122b60d169df0b9a6f51a262296e5;p=tt-rss.git new hidden param, _INFOBOX_DISABLE_OVERLAY --- diff --git a/functions.js b/functions.js index f308a3d2..3a67b183 100644 --- a/functions.js +++ b/functions.js @@ -1320,7 +1320,7 @@ function leading_zero(p) { function closeInfoBox(cleanup) { - if (!is_msie()) { + if (!is_msie() && !getInitParam("infobox_disable_overlay")) { var overlay = document.getElementById("dialog_overlay"); if (overlay) { overlay.style.display = "none"; @@ -1383,10 +1383,12 @@ function infobox_submit_callback() { function infobox_callback() { if (xmlhttp.readyState == 4) { - var overlay = document.getElementById("dialog_overlay"); - if (overlay) { - overlay.style.display = "block"; + if (!is_msie() && !getInitParam("infobox_disable_overlay")) { + var overlay = document.getElementById("dialog_overlay"); + if (overlay) { + overlay.style.display = "block"; + } } var box = document.getElementById('infoBox'); diff --git a/functions.php b/functions.php index f528edc9..cdf592f7 100644 --- a/functions.php +++ b/functions.php @@ -2202,16 +2202,16 @@ get_pref($link, "ON_CATCHUP_SHOW_NEXT_FEED") . "\"/>"; print ""; + (int) get_pref($link, "HIDE_READ_FEEDS") . "\"/>"; print ""; + (int) get_pref($link, "FEEDS_SORT_BY_UNREAD") . "\"/>"; print ""; + (int) get_pref($link, "CONFIRM_FEED_CATCHUP") . "\"/>"; print ""; + (int) get_pref($link, "CDM_AUTO_CATCHUP") . "\"/>"; print ""; @@ -2221,11 +2221,14 @@ get_pref($link, "_DEFAULT_VIEW_MODE") . "\"/>"; print ""; + (int) get_pref($link, "_DEFAULT_VIEW_LIMIT") . "\"/>"; print ""; + print ""; + print ""; } diff --git a/schema/ttrss_schema_mysql.sql b/schema/ttrss_schema_mysql.sql index 6db955e5..25c2ec95 100644 --- a/schema/ttrss_schema_mysql.sql +++ b/schema/ttrss_schema_mysql.sql @@ -274,6 +274,8 @@ insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) valu insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('_PREFS_ACTIVE_TAB', 2, '', '', 1); +insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('_INFOBOX_DISABLE_OVERLAY', 1, 'false', '', 1); + create table ttrss_user_prefs ( owner_uid integer not null, pref_name varchar(250), diff --git a/schema/ttrss_schema_pgsql.sql b/schema/ttrss_schema_pgsql.sql index e5509a98..ed109e5f 100644 --- a/schema/ttrss_schema_pgsql.sql +++ b/schema/ttrss_schema_pgsql.sql @@ -254,6 +254,8 @@ insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) valu insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('_PREFS_ACTIVE_TAB', 2, '', '', 1); +insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('_INFOBOX_DISABLE_OVERLAY', 1, 'false', '', 1); + create table ttrss_user_prefs ( owner_uid integer not null references ttrss_users(id) ON DELETE CASCADE, pref_name varchar(250) not null references ttrss_prefs(pref_name) ON DELETE CASCADE, diff --git a/schema/versions/mysql/17.sql b/schema/versions/mysql/17.sql index 631dc30a..1416be2c 100644 --- a/schema/versions/mysql/17.sql +++ b/schema/versions/mysql/17.sql @@ -1,3 +1,5 @@ insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('_PREFS_ACTIVE_TAB', 2, '', '', 1); +insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('_INFOBOX_DISABLE_OVERLAY', 1, 'false', '', 1); + update ttrss_version set schema_version = 17; diff --git a/schema/versions/pgsql/17.sql b/schema/versions/pgsql/17.sql index 631dc30a..1416be2c 100644 --- a/schema/versions/pgsql/17.sql +++ b/schema/versions/pgsql/17.sql @@ -1,3 +1,5 @@ insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('_PREFS_ACTIVE_TAB', 2, '', '', 1); +insert into ttrss_prefs (pref_name,type_id,def_value,short_desc,section_id) values('_INFOBOX_DISABLE_OVERLAY', 1, 'false', '', 1); + update ttrss_version set schema_version = 17;