community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1669707 - /comdev/projects.apache.org/site/js/projects.js
Date Fri, 27 Mar 2015 23:23:32 GMT
Author: hboutemy
Date: Fri Mar 27 23:23:32 2015
New Revision: 1669707

URL: http://svn.apache.org/r1669707
Log:
fixed project page category display and link

Modified:
    comdev/projects.apache.org/site/js/projects.js

Modified: comdev/projects.apache.org/site/js/projects.js
URL: http://svn.apache.org/viewvc/comdev/projects.apache.org/site/js/projects.js?rev=1669707&r1=1669706&r2=1669707&view=diff
==============================================================================
--- comdev/projects.apache.org/site/js/projects.js (original)
+++ comdev/projects.apache.org/site/js/projects.js Fri Mar 27 23:23:32 2015
@@ -269,7 +269,8 @@ function renderProjectPage(json, state)
 	    var arr = pl.split(/,\s*/)
 	    pls = "";
 	    for (i in arr) {
-		pls += "<a href='/projects.html?category#" + arr[i] + "'>" + arr[i] + "</a>
&nbsp; "
+		var cat = arr[i].replace("http://projects.apache.org/category/", "").toLowerCase();
+		pls += "<a href='/projects.html?category#" + cat + "'>" + cat + "</a> &nbsp;
"
 	    }
 	    li.innerHTML = "<b>Category:</b> " + pls
 	    ul.appendChild(li)



Mime
View raw message