Skip to content

Commit 2733e92

Browse files
committed
Use normal POST instead of AJAX for search
- Legacy-Id: 1972
1 parent 046ee2a commit 2733e92

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

ietf/templates/idrfc/base_leftmenu.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858

5959
<li class="sect">Drafts&nbsp;&amp;&nbsp;RFCs</li>
6060
<li><a href="/doc/">Search</a></li>
61-
<li><form action="/doc/search/" method="get" style="padding-bottom:0;margin-bottom:0;"><input type="text" style="margin-left:10px; width:100px; border:1px solid #89d;" name="name" /><input type="hidden" name="activeDrafts" value="on"/><input type="hidden" name="rfcs" value="on"/></form></li>
61+
<li><form action="/doc/search/" method="post" style="padding-bottom:0;margin-bottom:0;"><input type="text" style="margin-left:10px; width:100px; border:1px solid #89d;" name="name" /><input type="hidden" name="activeDrafts" value="on"/><input type="hidden" name="rfcs" value="on"/></form></li>
6262
<li><a href="https://datatracker.ietf.org/idst/upload.cgi">Submit a draft</a></li>
6363

6464

ietf/templates/idrfc/search_form.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3333
{% endcomment %}
3434

35-
<form name="search_form" id="search_form" action="/doc/search/" method="post" onsubmit="submitSearch();return false;">
35+
<form name="search_form" id="search_form" action="/doc/search/" method="post" {# onsubmit="submitSearch();return false;" #}>
3636

3737
<div class="search_field">
3838
<label>Name/number/title:</label> {{ form.name }}
@@ -84,6 +84,7 @@
8484

8585
<script type="text/javascript">
8686
//<![CDATA[
87+
{% comment %}
8788
function searchResult(o) {
8889
var el = document.getElementById("search_results");
8990
el.innerHTML = (o.responseText !== undefined) ? o.responseText : "?";
@@ -104,6 +105,7 @@
104105
argument: null
105106
}, null);
106107
}
108+
{% endcomment %}
107109

108110
function togglePlusMinus(id) {
109111
var el = document.getElementById(id);

0 commit comments

Comments
 (0)