community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1665147 - /comdev/reporter.apache.org/site/render.js
Date Mon, 09 Mar 2015 08:15:53 GMT
Author: humbedooh
Date: Mon Mar  9 08:15:53 2015
New Revision: 1665147

URL: http://svn.apache.org/r1665147
Log:
Don't re-render if the user picks a PMC already shown on the page, or it'll bork.

Modified:
    comdev/reporter.apache.org/site/render.js

Modified: comdev/reporter.apache.org/site/render.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/site/render.js?rev=1665147&r1=1665146&r2=1665147&view=diff
==============================================================================
--- comdev/reporter.apache.org/site/render.js (original)
+++ comdev/reporter.apache.org/site/render.js Mon Mar  9 08:15:53 2015
@@ -590,6 +590,9 @@ function renderFrontPage(json) {
 }
 
 function mergeData(json, pmc) {
+	if (jsdata.pmcs.indexOf(pmc) >= 0) {
+		return
+	}
 	if (nproject && nproject.length > 0) {
 		for (i in jsdata.pmcs) {
 			if (jsdata.pmcs[i] == nproject) {
@@ -598,6 +601,7 @@ function mergeData(json, pmc) {
 			}
 		}
 	}
+	
 	var todo = new Array('count', 'mail', 'delivery', 'jira', 'changes', 'pdata', 'releases',
'keys')
 	for (i in todo) {
 		var key = todo[i]



Mime
View raw message