Fix gopher search forms
Now searching for haiku on Veronica 2 leads to: gopher://gopher.floodgap.com/7/v2/vs?haiku
This commit is contained in:
@@ -510,10 +510,12 @@ BGopherRequest::_ParseInput(bool last)
|
|||||||
* For now we use an unnamed input field and accept sending ?=foo
|
* For now we use an unnamed input field and accept sending ?=foo
|
||||||
* as it seems at least Veronica-2 ignores the = but it's unclean.
|
* as it seems at least Veronica-2 ignores the = but it's unclean.
|
||||||
*/
|
*/
|
||||||
item << "<form method=\"get\" action=\"" << link << "\">"
|
item << "<form method=\"get\" action=\"" << link << "\" "
|
||||||
|
"onsubmit=\"window.location = this.action + '?' + "
|
||||||
|
"this.elements['q'].value; return false;\">"
|
||||||
"<span class=\"query\">"
|
"<span class=\"query\">"
|
||||||
"<label>" << title << " "
|
"<label>" << title << " "
|
||||||
"<input name=\"\" type=\"text\" align=\"right\" />"
|
"<input id=\"q\" name=\"\" type=\"text\" align=\"right\" />"
|
||||||
"</label>"
|
"</label>"
|
||||||
"</span></form>"
|
"</span></form>"
|
||||||
"<br/>\n";
|
"<br/>\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user