summaryrefslogtreecommitdiffstats
path: root/template/en/default
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2012-08-28 18:35:50 +0200
committerByron Jones <bjones@mozilla.com>2012-08-28 18:35:50 +0200
commitbeae46063bcb62deddd6e72c2e34388b3c265da0 (patch)
tree561e5c554235ac21c0e192d81a0bf7ede780af68 /template/en/default
parentb412d2636fd4997389a5ecad459c2e31adf670fc (diff)
downloadbugzilla-beae46063bcb62deddd6e72c2e34388b3c265da0.tar.gz
bugzilla-beae46063bcb62deddd6e72c2e34388b3c265da0.tar.xz
Bug 772953: Remove the token from buglist urls
r=dkl, a=LpSolit
Diffstat (limited to 'template/en/default')
-rw-r--r--template/en/default/search/search-advanced.html.tmpl11
1 files changed, 9 insertions, 2 deletions
diff --git a/template/en/default/search/search-advanced.html.tmpl b/template/en/default/search/search-advanced.html.tmpl
index ef7fa769a..780d54edd 100644
--- a/template/en/default/search/search-advanced.html.tmpl
+++ b/template/en/default/search/search-advanced.html.tmpl
@@ -31,7 +31,13 @@
[% js_data = BLOCK %]
-var queryform = "queryform"
+var queryform = "queryform";
+function remove_token() {
+ if (queryform.token) {
+ var asDefault = document.getElementById('remasdefault');
+ queryform.token.disabled = !asDefault.checked;
+ }
+}
[% END %]
[% PROCESS global/header.html.tmpl
@@ -53,7 +59,8 @@ var queryform = "queryform"
<p id="search_help">Hover your mouse over each field label to get help for that field.</p>
-<form method="post" action="buglist.cgi" name="queryform" id="queryform">
+<form method="post" action="buglist.cgi" name="queryform" id="queryform"
+ onsubmit="remove_token()">
[% PROCESS search/form.html.tmpl %]