1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 10:46:49 +00:00

limit number of loaded headlines

This commit is contained in:
Andrew Dolgov
2005-09-05 13:54:07 +01:00
parent bb7cfaceb1
commit cb1083a1f6
3 changed files with 25 additions and 1 deletions

View File

@@ -229,6 +229,16 @@ function viewfeed(feed, skip, subop) {
view_mode = "All Posts";
}
var limitbox = document.getElementById("limitbox");
var limit;
if (limitbox) {
limit = limitbox.value;
} else {
limit = "All";
}
if (skip < 0 || skip > total_feed_entries) {
return;
}
@@ -260,7 +270,7 @@ function viewfeed(feed, skip, subop) {
var query = "backend.php?op=viewfeed&feed=" + param_escape(feed) +
"&skip=" + param_escape(skip) + "&subop=" + param_escape(subop) +
"&view=" + param_escape(view_mode);
"&view=" + param_escape(view_mode) + "&limit=" + limit;
if (search_query != "") {
query = query + "&search=" + param_escape(search_query);