community-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=1799050&view=rev
Log:
always clear innerHTML

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

Modified: comdev/reporter.apache.org/trunk/site/js/coffee/main.coffee
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/js/coffee/main.coffee?rev=1799050&r1=1799049&r2=1799050&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/js/coffee/main.coffee (original)
+++ comdev/reporter.apache.org/trunk/site/js/coffee/main.coffee Sun Jun 18 07:31:39 2017
@@ -234,11 +234,11 @@ renderFrontPage = (tpmc) ->
     sproject = tpmc;
     hcolors = ["#000070", "#007000", "#407000", "#70500", "#700000", "#A00000"]
     hvalues = ["Super Healthy", "Healthy", "Mostly Okay", "Unhealthy", "Action required!",
"URGENT ACTION REQUIRED!"]
+    container.innerHTML = ""
     for pmc, i in json.pmcs
         if pmc == tpmc or not tpmc
             # If we already rendered this, just re-add it
             if rendered[pmc]
-                container.innerHTML = ""
                 container.appendChild(rendered[pmc])
             # Stuff has broken, check that we have dates!
             if (not pmc in json.pmcdates)

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=1799050&r1=1799049&r2=1799050&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:31:39 2017
@@ -360,13 +360,13 @@ renderFrontPage = function(tpmc) {
   sproject = tpmc;
   hcolors = ["#000070", "#007000", "#407000", "#70500", "#700000", "#A00000"];
   hvalues = ["Super Healthy", "Healthy", "Mostly Okay", "Unhealthy", "Action required!",
"URGENT ACTION REQUIRED!"];
+  container.innerHTML = "";
   ref = json.pmcs;
   results = [];
   for (i = j = 0, len1 = ref.length; j < len1; i = ++j) {
     pmc = ref[i];
     if (pmc === tpmc || !tpmc) {
       if (rendered[pmc]) {
-        container.innerHTML = "";
         container.appendChild(rendered[pmc]);
       }
       if ((ref1 = !pmc, indexOf.call(json.pmcdates, ref1) >= 0)) {



Mime
View raw message