diff options
author | Angelo Compagnucci <angelo.compagnucci@gmail.com> | 2017-02-22 21:03:47 +0100 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2017-02-22 21:31:03 +0100 |
commit | 059029edf3c58907a605e84ca6860719dc1b084b (patch) | |
tree | ba760b1c1b657c50236db640463ecd3892fb1e45 /docs/website | |
parent | bedc0ccd7052d063e6ce0ab816b44cad29dbc658 (diff) | |
download | buildroot-059029edf3c58907a605e84ca6860719dc1b084b.tar.gz buildroot-059029edf3c58907a605e84ca6860719dc1b084b.zip |
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>
Diffstat (limited to 'docs/website')
-rw-r--r-- | docs/website/js/buildroot.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/website/js/buildroot.js b/docs/website/js/buildroot.js index da43664162..a30da633e9 100644 --- a/docs/website/js/buildroot.js +++ b/docs/website/js/buildroot.js @@ -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; |