You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2016/11/06 11:35:12 UTC

incubator-ponymail git commit: Simpler solution for other search periods

Repository: incubator-ponymail
Updated Branches:
  refs/heads/master 96be36c7a -> 8cb5e2371


Simpler solution for other search periods

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

Branch: refs/heads/master
Commit: 8cb5e2371bc262a73925017b3dd9487966850581
Parents: 96be36c
Author: Sebb <se...@apache.org>
Authored: Sun Nov 6 11:33:45 2016 +0000
Committer: Sebb <se...@apache.org>
Committed: Sun Nov 6 11:33:45 2016 +0000

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


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/8cb5e237/site/js/dev/ponymail_search.js
----------------------------------------------------------------------
diff --git a/site/js/dev/ponymail_search.js b/site/js/dev/ponymail_search.js
index 9b0d95b..9f2cbe8 100644
--- a/site/js/dev/ponymail_search.js
+++ b/site/js/dev/ponymail_search.js
@@ -110,7 +110,10 @@ function search(q, d, nopush, all) {
     // TODO: improve this much like we have with trends.html
     var arr = datePickerDouble(d)
     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>"
+    // howlong may begin with a month which should not be lower-cased.
+    // or it may be 'Less than 1 month ago'
+    // Avoid checking by starting a new sentence
+    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;
 }

http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/8cb5e237/site/js/ponymail.js
----------------------------------------------------------------------
diff --git a/site/js/ponymail.js b/site/js/ponymail.js
index 17a1658..f324ba3 100644
--- a/site/js/ponymail.js
+++ b/site/js/ponymail.js
@@ -4512,7 +4512,10 @@ function search(q, d, nopush, all) {
     // TODO: improve this much like we have with trends.html
     var arr = datePickerDouble(d)
     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>"
+    // howlong may begin with a month which should not be lower-cased.
+    // or it may be 'Less than 1 month ago'
+    // Avoid checking by starting a new sentence
+    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;
 }