community-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=1799052&view=rev
Log:
iteration fix

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=1799052&r1=1799051&r2=1799052&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:37:10 2017
@@ -82,8 +82,7 @@ setReportDate = (json, x) ->
 
     # First check if the list contains an every month indicator
     # This is necessary to ensure that the dates are added to the list in order
-    for i in json[pmc]
-        sm = json[pmc][i]
+    for sm in json[pmc]
         if everyMonth(sm)
             # Reset to every month
             rm = m

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=1799052&r1=1799051&r2=1799052&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:37:10 2017
@@ -190,8 +190,7 @@ setReportDate = function(json, x) {
   rm = json[pmc];
   ref1 = json[pmc];
   for (j = 0, len1 = ref1.length; j < len1; j++) {
-    i = ref1[j];
-    sm = json[pmc][i];
+    sm = ref1[j];
     if (everyMonth(sm)) {
       rm = m;
       break;



Mime
View raw message