You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by hu...@apache.org on 2016/02/07 20:23:21 UTC
svn commit: r1729018 - /comdev/helpwanted.apache.org/site/js/hw.js
Author: humbedooh
Date: Sun Feb 7 19:23:21 2016
New Revision: 1729018
URL: http://svn.apache.org/viewvc?rev=1729018&view=rev
Log:
also add non-ldap groups (incubator projects + sub-projects) to the list
Modified:
comdev/helpwanted.apache.org/site/js/hw.js
Modified: comdev/helpwanted.apache.org/site/js/hw.js
URL: http://svn.apache.org/viewvc/comdev/helpwanted.apache.org/site/js/hw.js?rev=1729018&r1=1729017&r2=1729018&view=diff
==============================================================================
--- comdev/helpwanted.apache.org/site/js/hw.js (original)
+++ comdev/helpwanted.apache.org/site/js/hw.js Sun Feb 7 19:23:21 2016
@@ -221,17 +221,25 @@ function sw(id) {
obj.style.display = op
}
-function reallyPopulate(json) {
+function reallyPopulate(json, state) {
var pro = []
var obj = document.getElementById('project')
- for (var i in json.committees) {
+
+ // optgroup for spoken/written
+ var optg = document.createElement('optgroup')
+ optg.label = state ? "Non-TLPs:" : "Top Level Projects:"
+ obj.appendChild(optg)
+
+ for (var i in (json.committees || json.groups)) {
pro.push(i)
var opt = document.createElement('option')
opt.text = i
opt.setAttribute("value", i)
obj.appendChild(opt)
}
-
+ if (state) {
+ return
+ }
var obj = document.getElementById('languages')
// optgroup for programming
var optg = document.createElement('optgroup')
@@ -257,10 +265,13 @@ function reallyPopulate(json) {
opt.setAttribute("value", spoken_langs[i])
obj.appendChild(opt)
}
+ if (!state) {
+ getAsyncJSON('https://whimsy.apache.org/public/public_nonldap_groups.json', 'other', reallyPopulate)
+ }
}
function populateAdminForm() {
- getAsyncJSON('https://whimsy.apache.org/public/public_ldap_committees.json', null, reallyPopulate)
+ getAsyncJSON('https://whimsy.apache.org/public/public_ldap_committees.json', false, reallyPopulate)
}
function displayItems(json, state) {