From: Andrew Dolgov Date: Fri, 3 Feb 2006 08:35:30 +0000 (+0100) Subject: new option: FEEDS_FRAME_REFRESH (sort-of closes #12) X-Git-Tag: 1.1.3~53 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=f5de0d8da5a1300026584a1f374a679052d1ac9e;p=tt-rss.git new option: FEEDS_FRAME_REFRESH (sort-of closes #12) --- diff --git a/backend.php b/backend.php index de31a0f9..3ba723d2 100644 --- a/backend.php +++ b/backend.php @@ -59,6 +59,8 @@ } else { setcookie("ttrss_vf_hreadf", 0); } + + setcookie('ttrss_vf_refresh', FEEDS_FRAME_REFRESH); } $fetch = $_GET["fetch"]; diff --git a/config.php-dist b/config.php-dist index 10511992..db739a75 100644 --- a/config.php-dist +++ b/config.php-dist @@ -70,6 +70,9 @@ define('TMP_DIRECTORY', '/tmp'); // Directory for temporary files + + define('FEEDS_FRAME_REFRESH', 600); + // Auto refresh interval for feeds frame (in seconds) // vim:ft=php ?> diff --git a/tt-rss.js b/tt-rss.js index 545d7915..6e277888 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -253,7 +253,12 @@ function viewfeed(feed, skip, subop) { function timeout() { scheduleFeedUpdate(false); - setTimeout("timeout()", 900*1000); + + var refresh_time = getCookie('ttrss_vf_refresh'); + + if (!refresh_time) refresh_time = 600; + + setTimeout("timeout()", refresh_time*1000); } function resetSearch() {