community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1757095 - /comdev/projects.apache.org/site/js/projects.js
Date Sun, 21 Aug 2016 22:37:52 GMT
Author: sebb
Date: Sun Aug 21 22:37:52 2016
New Revision: 1757095

URL: http://svn.apache.org/viewvc?rev=1757095&view=rev
Log:
Use same capitalisation as the language list to avoid confusing duplicates

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=1757095&r1=1757094&r2=1757095&view=diff
==============================================================================
--- comdev/projects.apache.org/site/js/projects.js (original)
+++ comdev/projects.apache.org/site/js/projects.js Sun Aug 21 22:37:52 2016
@@ -702,7 +702,8 @@ function renderProjectsByLanguage() {
             if (projects[i]['programming-language']) {
                 var a = projects[i]['programming-language'].split(/,\s*/);
                 for (x in a) {
-                    if (a[x].toLowerCase() == lang.toLowerCase()) {
+                    // Use same capitalisation as the language list
+                    if (camelCase(a[x]) == lang) {
                         appendLiInnerHTML(cul, projectIcon(projects[i].name) + projectLink(i));
                     }
                 }



Mime
View raw message