community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1839524 - /comdev/project-logos/site/js/logofinder.js
Date Wed, 29 Aug 2018 00:52:27 GMT
Author: humbedooh
Date: Wed Aug 29 00:52:26 2018
New Revision: 1839524

URL: http://svn.apache.org/viewvc?rev=1839524&view=rev
Log:
allow searching for podlings only by searching for 'incubating' - essentially add '(incubating)'
to the project names when searching

Modified:
    comdev/project-logos/site/js/logofinder.js

Modified: comdev/project-logos/site/js/logofinder.js
URL: http://svn.apache.org/viewvc/comdev/project-logos/site/js/logofinder.js?rev=1839524&r1=1839523&r2=1839524&view=diff
==============================================================================
--- comdev/project-logos/site/js/logofinder.js (original)
+++ comdev/project-logos/site/js/logofinder.js Wed Aug 29 00:52:26 2018
@@ -151,7 +151,9 @@ function find_project(name) {
         let key = keys[i];
         let project = pjson[key];
         if (!project) continue;
-        if (project.name.toLowerCase().match(name) || key.toLowerCase().match(name)) {
+        let pname = project.name.toLowerCase();
+        if (project.podling) pname += " (incubating)";
+        if (pname.match(name) || key.toLowerCase().match(name)) {
             if (project.has_default || project.images.length > 0) {
                 num++;
                 let div = make_div(key, project);



Mime
View raw message