mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-17 22:31:30 +00:00
new option: FEEDS_FRAME_REFRESH (sort-of closes #12)
This commit is contained in:
@@ -59,6 +59,8 @@
|
|||||||
} else {
|
} else {
|
||||||
setcookie("ttrss_vf_hreadf", 0);
|
setcookie("ttrss_vf_hreadf", 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setcookie('ttrss_vf_refresh', FEEDS_FRAME_REFRESH);
|
||||||
}
|
}
|
||||||
|
|
||||||
$fetch = $_GET["fetch"];
|
$fetch = $_GET["fetch"];
|
||||||
|
|||||||
@@ -71,5 +71,8 @@
|
|||||||
define('TMP_DIRECTORY', '/tmp');
|
define('TMP_DIRECTORY', '/tmp');
|
||||||
// Directory for temporary files
|
// Directory for temporary files
|
||||||
|
|
||||||
|
define('FEEDS_FRAME_REFRESH', 600);
|
||||||
|
// Auto refresh interval for feeds frame (in seconds)
|
||||||
|
|
||||||
// vim:ft=php
|
// vim:ft=php
|
||||||
?>
|
?>
|
||||||
|
|||||||
@@ -253,7 +253,12 @@ function viewfeed(feed, skip, subop) {
|
|||||||
|
|
||||||
function timeout() {
|
function timeout() {
|
||||||
scheduleFeedUpdate(false);
|
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() {
|
function resetSearch() {
|
||||||
|
|||||||
Reference in New Issue
Block a user