ponymail-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject incubator-ponymail git commit: Does not make sense to lowerCase the first letter of the month
Date Sun, 06 Nov 2016 00:07:32 GMT
Repository: incubator-ponymail
Updated Branches:
  refs/heads/master 86d7c7f21 -> a9457f3ca


Does not make sense to lowerCase the first letter of the month

Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/a9457f3c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/a9457f3c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/a9457f3c

Branch: refs/heads/master
Commit: a9457f3ca3535f55be90c602b1ac46dc05bfcdb1
Parents: 86d7c7f
Author: Sebb <sebb@apache.org>
Authored: Sun Nov 6 00:06:45 2016 +0000
Committer: Sebb <sebb@apache.org>
Committed: Sun Nov 6 00:06:45 2016 +0000

----------------------------------------------------------------------
 site/js/dev/ponymail_search.js | 5 ++---
 site/js/ponymail.js            | 5 ++---
 2 files changed, 4 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/a9457f3c/site/js/dev/ponymail_search.js
----------------------------------------------------------------------
diff --git a/site/js/dev/ponymail_search.js b/site/js/dev/ponymail_search.js
index f5545fa..9b0d95b 100644
--- a/site/js/dev/ponymail_search.js
+++ b/site/js/dev/ponymail_search.js
@@ -109,8 +109,7 @@ function search(q, d, nopush, all) {
     // for the list title, prepare the date range
     // TODO: improve this much like we have with trends.html
     var arr = datePickerDouble(d)
-    howlong = datePickerValue(d)
-    howlong = howlong.replace(/^(.)/, function(a){return a.toLocaleLowerCase() })
+    var howlong = datePickerValue(d)
     document.getElementById('listtitle').innerHTML = listname + "@" + domain + " (Quick Search,
" + howlong + ") <a class='btn btn-warning' href='javascript:void(0);' onclick='getListInfo(xlist)'>Clear
filters</a>"
     xlist = olist + "@" + domain
     return false;
@@ -143,7 +142,7 @@ function searchAll(q, dspan, from, subject, where) {
         deep: true
     }, buildPage)
     var arr = datePickerDouble(dspan)
-    howlong = arr[3]
+    var howlong = arr[3]
     if (isNaN(howlong)) {
         howlong = "custom date range"
     } else {

http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/a9457f3c/site/js/ponymail.js
----------------------------------------------------------------------
diff --git a/site/js/ponymail.js b/site/js/ponymail.js
index a28c5b6..17a1658 100644
--- a/site/js/ponymail.js
+++ b/site/js/ponymail.js
@@ -4511,8 +4511,7 @@ function search(q, d, nopush, all) {
     // for the list title, prepare the date range
     // TODO: improve this much like we have with trends.html
     var arr = datePickerDouble(d)
-    howlong = datePickerValue(d)
-    howlong = howlong.replace(/^(.)/, function(a){return a.toLocaleLowerCase() })
+    var howlong = datePickerValue(d)
     document.getElementById('listtitle').innerHTML = listname + "@" + domain + " (Quick Search,
" + howlong + ") <a class='btn btn-warning' href='javascript:void(0);' onclick='getListInfo(xlist)'>Clear
filters</a>"
     xlist = olist + "@" + domain
     return false;
@@ -4545,7 +4544,7 @@ function searchAll(q, dspan, from, subject, where) {
         deep: true
     }, buildPage)
     var arr = datePickerDouble(dspan)
-    howlong = arr[3]
+    var howlong = arr[3]
     if (isNaN(howlong)) {
         howlong = "custom date range"
     } else {


Mime
View raw message