diff options
author | Byron Jones <bjones@mozilla.com> | 2012-08-28 17:22:11 +0200 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2012-08-28 17:22:11 +0200 |
commit | a3b0a94e697ed4478cde8de2fb22e9545dc41c8e (patch) | |
tree | eaf3cf782d67848d88b9f22d02f1c0cbc1bc35d0 /js | |
parent | ee28112b01e1ea22ee0cccca898f38d14ed54f29 (diff) | |
download | bugzilla-a3b0a94e697ed4478cde8de2fb22e9545dc41c8e.tar.gz bugzilla-a3b0a94e697ed4478cde8de2fb22e9545dc41c8e.tar.xz |
Bug 772953: Remove the token from buglist urls
r=dkl, a=LpSolit
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); } |