ponymail-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject [3/3] incubator-ponymail git commit: regen JS
Date Thu, 08 Sep 2016 04:08:02 GMT
regen JS


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

Branch: refs/heads/coffee-and-cake
Commit: 61793617d8da3bc4fa2189b4abbd579b548e01b8
Parents: 7036564
Author: Daniel Gruno <humbedooh@apache.org>
Authored: Thu Sep 8 06:07:38 2016 +0200
Committer: Daniel Gruno <humbedooh@apache.org>
Committed: Thu Sep 8 06:07:38 2016 +0200

----------------------------------------------------------------------
 site/js/ponymail-coffee.js | 26 +++++++++++++++++++++-----
 1 file changed, 21 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/61793617/site/js/ponymail-coffee.js
----------------------------------------------------------------------
diff --git a/site/js/ponymail-coffee.js b/site/js/ponymail-coffee.js
index 1231e62..1cd067a 100644
--- a/site/js/ponymail-coffee.js
+++ b/site/js/ponymail-coffee.js
@@ -2797,12 +2797,21 @@ threadScaffolding = function() {
 /* Quick Search bar creation */
 
 quickSearchBar = function() {
-  var button, datedata, input, list, listdata, listname, options, qs, span;
+  var advanced, button, datedata, input, list, listdata, listname, options, qs, span;
   qs = new HTML('form', {
     "class": "quicksearch",
     onsubmit: 'quickSearch(); return false;'
   });
 
+  /* Cog */
+
+  /* The blue search button */
+  cog = new HTML('input', {
+    type: 'submit',
+    "class": 'qs_cog',
+    title: "Search settings"
+  });
+
   /* Options area */
   options = new HTML('div', {
     "class": 'qs_options'
@@ -2817,10 +2826,10 @@ quickSearchBar = function() {
   }, "Less than 1 month ago");
 
   /* Lists(s) to search */
-  listname = 'This list';
+  listname = 'this list';
   listdata = ponymail_listname;
   if (ponymail_listname.length === 0) {
-    listname = 'All lists';
+    listname = 'all lists';
     listdata = "*@*";
   }
   list = new HTML('a', {
@@ -2835,7 +2844,7 @@ quickSearchBar = function() {
     type: "text",
     id: 'qs_input',
     "class": "qs_input",
-    placeholder: "Type search terms..."
+    placeholder: "Search " + listname + "..."
   });
 
   /* The blue search button */
@@ -2844,10 +2853,17 @@ quickSearchBar = function() {
     "class": 'qs_button'
   });
 
+  /* Link to advanced search */
+  advanced = new HTML('a', {
+    href: 'javascript:void(advancedSearch());',
+    "class": "qs_link"
+  }, "Advanced...");
+
   /* Add it all to the form */
-  qs.inject(options);
+  qs.inject(cog);
   qs.inject(input);
   qs.inject(button);
+  qs.inject(advanced);
   return qs;
 };
 


Mime
View raw message