diff options
author | Frédéric Buclin <LpSolit@gmail.com> | 2012-02-27 14:54:13 +0100 |
---|---|---|
committer | Frédéric Buclin <LpSolit@gmail.com> | 2012-02-27 14:54:13 +0100 |
commit | 50ee6eb2ff149ab3f3b67af839680a0e2ea9eedc (patch) | |
tree | 5dbaa90d673b2c6de97c4cdb869e5047f54472d5 /template/en/default/global | |
parent | c650592f1cdb27e5605d70a80ae03e9a2afb879b (diff) | |
download | bugzilla-50ee6eb2ff149ab3f3b67af839680a0e2ea9eedc.tar.gz bugzilla-50ee6eb2ff149ab3f3b67af839680a0e2ea9eedc.tar.xz |
Bug 730670: Do not redirect in buglist.cgi to improve performance
r=glob a=LpSolit
Diffstat (limited to 'template/en/default/global')
-rw-r--r-- | template/en/default/global/common-links.html.tmpl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/template/en/default/global/common-links.html.tmpl b/template/en/default/global/common-links.html.tmpl index cbfa7c77a..5af02afa6 100644 --- a/template/en/default/global/common-links.html.tmpl +++ b/template/en/default/global/common-links.html.tmpl @@ -21,6 +21,13 @@ onsubmit="if (this.quicksearch.value == '') { alert('Please enter one or more search terms first.'); return false; } return true;"> + <input type="hidden" id="no_redirect" name="no_redirect" value="0"> + <script type="text/javascript"> + if (history && history.replaceState) { + var no_redirect = document.getElementById("no_redirect"); + no_redirect.value = 1; + } + </script> <input class="txt" type="text" id="quicksearch[% qs_suffix FILTER html %]" name="quicksearch" title="Quick Search" value="[% quicksearch FILTER html %]"> <input class="btn" type="submit" value="Search" |