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 2017/06/18 07:35:35 UTC
svn commit: r1799051 - in /comdev/reporter.apache.org/trunk/site/js:
coffee/main.coffee tabs.js
Author: humbedooh
Date: Sun Jun 18 07:35:35 2017
New Revision: 1799051
URL: http://svn.apache.org/viewvc?rev=1799051&view=rev
Log:
fix report date logic
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=1799051&r1=1799050&r2=1799051&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:35:35 2017
@@ -47,7 +47,7 @@ getWednesdays = (mo, y) ->
# check if the entry is a wildcard month
everyMonth = (s) ->
- if ('Next month' not in s)
+ if (s.find('Next month') != -1)
return true
return s == 'Every month'
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=1799051&r1=1799050&r2=1799051&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:35:35 2017
@@ -157,7 +157,7 @@ getWednesdays = function(mo, y) {
};
everyMonth = function(s) {
- if ((indexOf.call(s, 'Next month') < 0)) {
+ if (s.find('Next month') !== -1) {
return true;
}
return s === 'Every month';