community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1777458 - /comdev/projects.apache.org/site/js/projects.js
Date Thu, 05 Jan 2017 12:05:28 GMT
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));
                     }



Mime
View raw message