Author: sebb
Date: Tue Apr 5 19:36:06 2022
New Revision: 1899595
URL: http://svn.apache.org/viewvc?rev=1899595&view=rev
Log:
Only add Infra once
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=1899595&r1=1899594&r2=1899595&view=diff
==============================================================================
--- comdev/helpwanted.apache.org/site/js/coffee/hw.coffee (original)
+++ comdev/helpwanted.apache.org/site/js/coffee/hw.coffee Tue Apr 5 19:36:06
2022
@@ -287,14 +287,15 @@ reallyPopulate = (json, state) ->
continue
app(obj, mk('option', { value: group}, group ))
- # Add Infra
+ # i.e. if podlings
+ if state
+ return
+
+ # Add Infra (once)
opti = mk('optgroup', { label: 'Infrastructure'})
app(obj, opti)
app(obj, mk('option', { value: 'infrastructure'}, 'infrastructure' ))
-
- if state
- return
-
+
obj = get('languages')
# optgroup for programming
optg = mk('optgroup', { label: "Programming languages:"})
Modified: comdev/helpwanted.apache.org/site/js/hw.js
URL:
http://svn.apache.org/viewvc/comdev/helpwanted.apache.org/site/js/hw.js?rev=1899595&r1=1899594&r2=1899595&view=diff
==============================================================================
--- comdev/helpwanted.apache.org/site/js/hw.js (original)
+++ comdev/helpwanted.apache.org/site/js/hw.js Tue Apr 5 19:36:06 2022
@@ -482,7 +482,11 @@ reallyPopulate = function(json, state) {
value: group
}, group));
}
- // Add Infra
+ // i.e. if podlings
+ if (state) {
+ return;
+ }
+ // Add Infra (once)
opti = mk('optgroup', {
label: 'Infrastructure'
});
@@ -490,9 +494,6 @@ reallyPopulate = function(json, state) {
app(obj, mk('option', {
value: 'infrastructure'
}, 'infrastructure'));
- if (state) {
- return;
- }
obj = get('languages');
// optgroup for programming
optg = mk('optgroup', {