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 2022/04/05 18:48:39 UTC

svn commit: r1899592 - in /comdev/helpwanted.apache.org/site/js: coffee/hw.coffee hw.js

Author: sebb
Date: Tue Apr  5 18:48:38 2022
New Revision: 1899592

URL: http://svn.apache.org/viewvc?rev=1899592&view=rev
Log:
Add label for Infra (it is not a podling)

Modified:
    comdev/helpwanted.apache.org/site/js/coffee/hw.coffee
    comdev/helpwanted.apache.org/site/js/hw.js

Modified: comdev/helpwanted.apache.org/site/js/coffee/hw.coffee
URL: http://svn.apache.org/viewvc/comdev/helpwanted.apache.org/site/js/coffee/hw.coffee?rev=1899592&r1=1899591&r2=1899592&view=diff
==============================================================================
--- comdev/helpwanted.apache.org/site/js/coffee/hw.coffee (original)
+++ comdev/helpwanted.apache.org/site/js/coffee/hw.coffee Tue Apr  5 18:48:38 2022
@@ -288,6 +288,8 @@ reallyPopulate = (json, state) ->
         app(obj, mk('option', { value: group}, group ))
 
     # Add Infra
+    opti = mk('optgroup', { label: 'Infrastructure'})
+    app(obj, opti)
     app(obj, mk('option', { value: 'infrastructure'}, 'infrastructure' ))
     
     if state

Modified: comdev/helpwanted.apache.org/site/js/hw.js
URL: http://svn.apache.org/viewvc/comdev/helpwanted.apache.org/site/js/hw.js?rev=1899592&r1=1899591&r2=1899592&view=diff
==============================================================================
--- comdev/helpwanted.apache.org/site/js/hw.js (original)
+++ comdev/helpwanted.apache.org/site/js/hw.js Tue Apr  5 18:48:38 2022
@@ -464,8 +464,7 @@ sw = function(id) {
 };
 
 reallyPopulate = function(json, state) {
-  var data, group, j, lang, len, len1, m, obj, opt, optg, pro, ref;
-  pro = [];
+  var data, group, j, lang, len, len1, m, obj, opt, optg, opti, ref;
   obj = get('project');
   
   // optgroup for spoken/written
@@ -479,13 +478,15 @@ reallyPopulate = function(json, state) {
     if (state === 'podlings' && data.status !== "current") {
       continue;
     }
-    pro.push(group);
     app(obj, mk('option', {
       value: group
     }, group));
   }
   // Add Infra
-  pro.push('infrastucture');
+  opti = mk('optgroup', {
+    label: 'Infrastructure'
+  });
+  app(obj, opti);
   app(obj, mk('option', {
     value: 'infrastructure'
   }, 'infrastructure'));