changeset 13:1c3b30308b46

Now filtering out anything from the dev news feed that isn't in the 'about-mozilla' category.
author Atul Varma <varmaa@toolness.com>
date Thu, 05 Mar 2009 09:49:54 -0800
parents e8ec89b2c895
children 0921b3bb553d
files about-mozilla.js
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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()] + " " +