summaryrefslogtreecommitdiffstats
path: root/template/en/default/search
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 /template/en/default/search
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 'template/en/default/search')
-rw-r--r--template/en/default/search/search-advanced.html.tmpl12
1 files changed, 11 insertions, 1 deletions
diff --git a/template/en/default/search/search-advanced.html.tmpl b/template/en/default/search/search-advanced.html.tmpl
index 7b2a347b9..2bff834bc 100644
--- a/template/en/default/search/search-advanced.html.tmpl
+++ b/template/en/default/search/search-advanced.html.tmpl
@@ -15,10 +15,19 @@
[% USE Bugzilla %]
[% cgi = Bugzilla.cgi %]
+[% javascript = BLOCK %]
+function remove_token() {
+ if (queryform.token) {
+ var asDefault = document.getElementById('remasdefault');
+ queryform.token.disabled = !asDefault.checked;
+ }
+}
+[% END %]
[% PROCESS global/header.html.tmpl
title = "Search for $terms.bugs"
yui = [ 'autocomplete', 'calendar' ]
+ javascript = javascript
javascript_urls = [ "js/util.js", "js/TUI.js", "js/field.js"]
style_urls = [ "skins/standard/search_form.css" ]
doc_section = "query.html"
@@ -30,7 +39,8 @@
<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 %]