diff options
Diffstat (limited to 'js')
-rw-r--r-- | js/custom-search.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/js/custom-search.js b/js/custom-search.js index f8332a0bf..89a788073 100644 --- a/js/custom-search.js +++ b/js/custom-search.js @@ -134,7 +134,15 @@ function fix_query_string(form_member) { return; var form = YAHOO.util.Dom.getAncestorByTagName(form_member, 'form'); + // Disable the token field so setForm doesn't include it + var reenable_token = false; + if (form['token'] && !form['token'].disabled) { + form['token'].disabled = true; + reenable_token = true; + } var query = YAHOO.util.Connect.setForm(form); + if (reenable_token) + form['token'].disabled = false; window.History.replaceState(null, document.title, '?' + query); } |