community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1799096 - /comdev/reporter.apache.org/trunk/site/js/coffee/tabs.coffee
Date Sun, 18 Jun 2017 15:52:55 GMT
Author: humbedooh
Date: Sun Jun 18 15:52:55 2017
New Revision: 1799096

URL: http://svn.apache.org/viewvc?rev=1799096&view=rev
Log:
fix ordering of injects

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

Modified: comdev/reporter.apache.org/trunk/site/js/coffee/tabs.coffee
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/js/coffee/tabs.coffee?rev=1799096&r1=1799095&r2=1799096&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/js/coffee/tabs.coffee (original)
+++ comdev/reporter.apache.org/trunk/site/js/coffee/tabs.coffee Sun Jun 18 15:52:55 2017
@@ -23,6 +23,9 @@ loadTabs = (stab) ->
     
     # Check if person is a member of any PMC or an ASF member
     if jsdata.all.length > 0
+        bread = new HTML('div', { class: 'bread', id: 'contents'}, "Loading page, please
wait...")
+        main.inject(bread)
+        
         # Dirty hack to determine membership for now
         if jsdata.all.length > 200
             all = ['Add a tab:', '---------------']
@@ -31,8 +34,7 @@ loadTabs = (stab) ->
             sel = makeSelect('project', all)
             sel.setAttribute("onchange", "addTab(this.value);")
             tdiv.inject(sel)
-            bread = new HTML('div', { class: 'bread', id: 'contents'}, "Loading page, please
wait...")
-            main.inject(bread)
+            
             
         # If all good, render the tab
         loadBread(stab)



Mime
View raw message