diff options
author | Byron Jones <bjones@mozilla.com> | 2012-08-28 18:35:50 +0200 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2012-08-28 18:35:50 +0200 |
commit | beae46063bcb62deddd6e72c2e34388b3c265da0 (patch) | |
tree | 561e5c554235ac21c0e192d81a0bf7ede780af68 /js | |
parent | b412d2636fd4997389a5ecad459c2e31adf670fc (diff) | |
download | bugzilla-beae46063bcb62deddd6e72c2e34388b3c265da0.tar.gz bugzilla-beae46063bcb62deddd6e72c2e34388b3c265da0.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 0ee7d2488..73897035d 100644 --- a/js/custom-search.js +++ b/js/custom-search.js @@ -146,7 +146,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); } |