Permalink
Browse files

Fixed loss of index page form values on 'more options' link click.

Restores the behavior introduced eleven years ago (see commit
479861a) and lost by mistake 3 years
ago (see commit 617dd9c), when the
click handler started referencing a missing HTML id.
  • Loading branch information...
luccioman committed Oct 23, 2017
1 parent b98acb3 commit f678394ce512421c2910fbcd4e54f069b88c200f
Showing with 1 addition and 1 deletion.
  1. +1 −1 htroot/index.html
@@ -72,7 +72,7 @@ <h2 class="yacy">#[promoteSearchPageGreeting]#</h2>
#(searchaudio)#::<input type="radio" id="audio" name="contentdom" value="audio" #(check)#::checked="checked"#(/check)# />&nbsp;Audio&nbsp;&nbsp;#(/searchaudio)#
#(searchvideo)#::<input type="radio" id="video" name="contentdom" value="video" #(check)#::checked="checked"#(/check)# />&nbsp;Video&nbsp;&nbsp;#(/searchvideo)#
#(searchapp)#::<input type="radio" id="app" name="contentdom" value="app" #(check)#::checked="checked"#(/check)# />&nbsp;Applications#(/searchapp)#
#(searchoptions)#&nbsp;&nbsp;<a href="index.html?searchoptions=1" onclick="this.href='index.html?searchoptions=1&amp;former='+document.getElementById('searchinput').search.value+'&amp;contentdom='+radioValue(document.getElementById('searchinput').contentdom)">more options...</a>::#(/searchoptions)#
#(searchoptions)#&nbsp;&nbsp;<a href="index.html?searchoptions=1" onclick="this.href='index.html?searchoptions=1&amp;former='+document.getElementById('search').value+'&amp;contentdom='+radioValue(document.getElementById('searchform').contentdom);">more options...</a>::#(/searchoptions)#
</div>
#(/searchdomswitches)#
<input type="hidden" name="nav" value="#[search.navigation]#" />

0 comments on commit f678394

Please sign in to comment.