# HG changeset patch # User Atul Varma # Date 1236275394 28800 # Node ID 1c3b30308b46b055cac7de39ef08cc77fadb0cfb # Parent e8ec89b2c895fae2ef310b499e3b17f7f3a8fb14 Now filtering out anything from the dev news feed that isn't in the 'about-mozilla' category. diff -r e8ec89b2c895 -r 1c3b30308b46 about-mozilla.js --- a/about-mozilla.js Mon Mar 02 10:24:52 2009 -0800 +++ b/about-mozilla.js Thu Mar 05 09:49:54 2009 -0800 @@ -53,7 +53,14 @@ function(result) { var qs = new Querystring(); var issue = qs.get("issue", "0"); - var entry = result.feed.entries[issue]; + var feeds = []; + jQuery.each( + result.feed.entries, + function() { + if (jQuery.inArray("about-mozilla", this.categories) != -1) + feeds.push(this); + }); + var entry = feeds[issue]; $("#raw-issue").html(entry.content); var pubDate = new Date(entry.publishedDate); var dateStr = (MONTHS[pubDate.getMonth()] + " " +