community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1799045 - in /comdev/reporter.apache.org/trunk/site/js: coffee/preload.coffee tabs.js
Date Sun, 18 Jun 2017 07:13:54 GMT
Author: humbedooh
Date: Sun Jun 18 07:13:54 2017
New Revision: 1799045

URL: http://svn.apache.org/viewvc?rev=1799045&view=rev
Log:
require committee data before we show a tab

Modified:
    comdev/reporter.apache.org/trunk/site/js/coffee/preload.coffee
    comdev/reporter.apache.org/trunk/site/js/tabs.js

Modified: comdev/reporter.apache.org/trunk/site/js/coffee/preload.coffee
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/js/coffee/preload.coffee?rev=1799045&r1=1799044&r2=1799045&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/js/coffee/preload.coffee (original)
+++ comdev/reporter.apache.org/trunk/site/js/coffee/preload.coffee Sun Jun 18 07:13:54 2017
@@ -33,16 +33,17 @@ preloadTabs = (json, state) ->
     a = 0
     ctab = 0
     for pmc in jsdata.pmcs
-        tab = {
-            id: pmc,
-            title: pmc,
-            renderer: renderFrontPage,
-            state: pmc
-        }
-        tabs.push(tab)
-        if cpmc == pmc
-            ctab = a
-        a++
+        if jsdata.pdata[pmc] and jsdata.pdata[pmc].chair # Require this to show a tab
+            tab = {
+                id: pmc,
+                title: pmc,
+                renderer: renderFrontPage,
+                state: pmc
+            }
+            tabs.push(tab)
+            if cpmc == pmc
+                ctab = a
+            a++
     loadTabs(ctab)
 
 

Modified: comdev/reporter.apache.org/trunk/site/js/tabs.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/js/tabs.js?rev=1799045&r1=1799044&r2=1799045&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/js/tabs.js (original)
+++ comdev/reporter.apache.org/trunk/site/js/tabs.js Sun Jun 18 07:13:54 2017
@@ -1122,17 +1122,19 @@ preloadTabs = function(json, state) {
   ref = jsdata.pmcs;
   for (j = 0, len1 = ref.length; j < len1; j++) {
     pmc = ref[j];
-    tab = {
-      id: pmc,
-      title: pmc,
-      renderer: renderFrontPage,
-      state: pmc
-    };
-    tabs.push(tab);
-    if (cpmc === pmc) {
-      ctab = a;
+    if (jsdata.pdata[pmc] && jsdata.pdata[pmc].chair) {
+      tab = {
+        id: pmc,
+        title: pmc,
+        renderer: renderFrontPage,
+        state: pmc
+      };
+      tabs.push(tab);
+      if (cpmc === pmc) {
+        ctab = a;
+      }
+      a++;
     }
-    a++;
   }
   return loadTabs(ctab);
 };



Mime
View raw message