var numPosts = 5; var postBox = $('qa-qmo-forumposts'); qaTools.showHideLoadingMessage(postBox, true); var url = qaMain.urlbundle.getString("qa.extension.url.qmo.forum_topics"); var callback = function(feed) { var items = feed.items; qaTools.showHideLoadingMessage(postBox, false); if (items.length < numPosts) numPosts=items.length; for (var i=0; i<numPosts; i++) { var item = items.queryElementAt(i, Ci.nsIFeedEntry); if (item != null) { qmo.populateLinkBox(postBox, [{text : item.title.plainText(), url : item.link.resolve("")}], 64); } } }; qaTools.fetchFeed(url, callback); }, 
var numPosts = 5; var postBox = $('qa-qmo-forumposts'); qaTools.showHideLoadingMessage(postBox, true); var url = qaMain.urlbundle.getString("qa.extension.url.qmo.forum_topics"); var callback = function(feed) { var items = feed.items; qaTools.showHideLoadingMessage(postBox, false); if (items.length < numPosts) numPosts=items.length; for (var i=0; i<numPosts; i++) { var item = items.queryElementAt(i, Ci.nsIFeedEntry); if (item != null) { qmo.populateLinkBox(postBox, [{text : item.title.plainText(), url : item.link.resolve("")}], 64); } } }; qaTools.fetchFeed(url, callback); }, 
	populateForumPosts : function() {		var numPosts = 5; // show top 5 topics		var postBox = $('qa-qmo-forumposts');		qaTools.showHideLoadingMessage(postBox, true);		var url = qaMain.urlbundle.getString("qa.extension.url.qmo.forum_topics");		var callback = function(feed) {			var items = feed.items;			qaTools.showHideLoadingMessage(postBox, false);			if (items.length < numPosts) 				numPosts=items.length;			for (var i=0; i<numPosts; i++) {				var item = items.queryElementAt(i, Ci.nsIFeedEntry);				if (item != null) {					qmo.populateLinkBox(postBox, 						[{text : item.title.plainText(), url : item.link.resolve("")}], 						64);				}			}		};		qaTools.fetchFeed(url, callback);	},
5872	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5872/a3a9a2c311afc9d76e4e6bfc036e5897fa988bc1/qmo.js/clean/testing/extensions/community/chrome/content/tabs/qmo.js