You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by se...@apache.org on 2017/01/05 12:05:28 UTC

svn commit: r1777458 - /comdev/projects.apache.org/site/js/projects.js

Author: sebb
Date: Thu Jan  5 12:05:27 2017
New Revision: 1777458

URL: http://svn.apache.org/viewvc?rev=1777458&view=rev
Log:
Downcase categories

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=1777458&r1=1777457&r2=1777458&view=diff
==============================================================================
--- comdev/projects.apache.org/site/js/projects.js (original)
+++ comdev/projects.apache.org/site/js/projects.js Thu Jan  5 12:05:27 2017
@@ -769,7 +769,7 @@ function renderProjectsByCategory() {
             var a = projects[i].category.split(/,\s*/);
             var x;
             for (x in a) {
-                x = a[x];
+                x = a[x].toLowerCase(); // must agree with downcase below
                 if (cats.indexOf(x) < 0) {
                             cats.push(x);
                             ccount[x] = 0;
@@ -795,7 +795,7 @@ function renderProjectsByCategory() {
             if (project.category) {
                 var a = project.category.split(/,\s*/);
                 for (x in a) {
-                    x = a[x];
+                    x = a[x].toLowerCase(); // must agree with downcase above
                     if (x == lang) {
                         appendLiInnerHTML(cul, projectIcon(project.name) + projectLink(i));
                     }