mirror of
https://git.busybox.net/buildroot.git
synced 2024-11-24 22:13:34 +08:00
docs/website: Speedup javascript query
This commit limits results from the javascript query for selecting messages from the mailing list. It was not limited before. Signed-off-by: Angelo Compagnucci <angelo.compagnucci@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
bedc0ccd70
commit
059029edf3
@ -1,7 +1,7 @@
|
||||
function load_activity(feedurl, divid) {
|
||||
var yqlURL = "https://query.yahooapis.com/v1/public/yql";
|
||||
var yqlQS = "?q=select%20*%20from%20xml%20where%20url%20%3D%20'";
|
||||
var yqlOPTS = "'&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys&callback=";
|
||||
var yqlQS = "?q=select%20entry%20from%20xml%20where%20url%20%3D%20'";
|
||||
var yqlOPTS = "'%20limit%2010&format=json&callback=";
|
||||
var container = document.getElementById(divid);
|
||||
var url = yqlURL + yqlQS + encodeURIComponent(feedurl) + yqlOPTS;
|
||||
|
||||
@ -10,8 +10,8 @@ function load_activity(feedurl, divid) {
|
||||
var loaded = 0;
|
||||
var nb_display = 8;
|
||||
if (result==null) return;
|
||||
for (var i = 0; i < result.feed.entry.length; i++) {
|
||||
var entry = result.feed.entry[i];
|
||||
for (var i = 0; i < result.feed.length; i++) {
|
||||
var entry = result.feed[i].entry;
|
||||
if (entry.title.indexOf("git commit") != -1)
|
||||
continue;
|
||||
loaded += 1;
|
||||
|
Loading…
Reference in New Issue
Block a user