summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2012-08-28 17:22:11 +0200
committerByron Jones <bjones@mozilla.com>2012-08-28 17:22:11 +0200
commita3b0a94e697ed4478cde8de2fb22e9545dc41c8e (patch)
treeeaf3cf782d67848d88b9f22d02f1c0cbc1bc35d0 /js
parentee28112b01e1ea22ee0cccca898f38d14ed54f29 (diff)
downloadbugzilla-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.js8
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);
}