diff options
author | Byron Jones <bjones@mozilla.com> | 2012-08-28 23:22:11 +0800 |
---|---|---|
committer | Byron Jones <bjones@mozilla.com> | 2012-08-28 23:22:11 +0800 |
commit | a3b0a94e697ed4478cde8de2fb22e9545dc41c8e (patch) | |
tree | eaf3cf782d67848d88b9f22d02f1c0cbc1bc35d0 /js | |
parent | Bug 785917: Custom field descriptions are not properly escaped when displayed... (diff) | |
download | bugzilla-a3b0a94e697ed4478cde8de2fb22e9545dc41c8e.tar.gz bugzilla-a3b0a94e697ed4478cde8de2fb22e9545dc41c8e.tar.bz2 bugzilla-a3b0a94e697ed4478cde8de2fb22e9545dc41c8e.zip |
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); } |