From d916b2b55d7aa5492b505693ee3263e3b10395b8 Mon Sep 17 00:00:00 2001 From: cel Date: Sat, 29 Apr 2017 10:45:10 -1000 Subject: Add form for searching text in a feed --- lib/serve.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/serve.js b/lib/serve.js index 00c2968..31a07cf 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -1075,6 +1075,16 @@ Serve.prototype.wrapUserFeed = function (isScrolled, id) { h('a', {href: render.toUrl('/contacts/' + id)}, 'contacts') ) ), + h('tr', + h('td'), + h('td', + h('form', {action: render.toUrl('/advsearch'), method: 'get'}, + h('input', {type: 'hidden', name: 'source', value: id}), + h('input', {type: 'text', name: 'text', placeholder: 'text'}), + h('input', {type: 'submit', value: 'search'}) + ) + ) + ), isScrolled ? '' : [ id === myId ? '' : h('tr', h('td'), -- cgit v1.2.3