[PATCH 10/11] nmweb: hide numeric date fields'

Daniel Kahn Gillmor dkg at fifthhorseman.net
Sun Feb 4 20:19:58 PST 2018


These are populated by javascript, but the user shouldn't see them.
---
 contrib/notmuch-web/templates/base.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/contrib/notmuch-web/templates/base.html b/contrib/notmuch-web/templates/base.html
index 6d204562..e3743c93 100644
--- a/contrib/notmuch-web/templates/base.html
+++ b/contrib/notmuch-web/templates/base.html
@@ -20,9 +20,9 @@ src="{{sprefix}}/js/jquery-ui-1.8.21.custom.min.js"></script>
 <form action="{{prefix}}/search/" method="GET" data-ajax="false">
 <label for="terms">Terms</label><input id="terms" name="terms">
 <label for="after">After</label><input id="after"
-name="after"><input id="afters" name="afters">
+name="after"><input type="hidden" id="afters" name="afters">
 <label for="before">Before</label><input id="before"
-name="before"><input id="befores" name="befores">
+name="before"><input id="befores" type="hidden" name="befores">
 <input type="submit" name="submit" id="submit" value="Search">
 </form>
 {% endblock searchform %}
-- 
2.15.1



More information about the notmuch mailing list