diff options
author | Reed Loden <reed@reedloden.com> | 2012-08-31 07:48:17 +0200 |
---|---|---|
committer | Reed Loden <reed@reedloden.com> | 2012-08-31 07:48:17 +0200 |
commit | a456ec46452abaaaa5369c02886c7d5b03e592f3 (patch) | |
tree | 52e153ff5cf239589e5664b02c1ee1a794e82354 /template/en/default/search | |
parent | cc747ce58fb842897b45a67af40e178879cf384d (diff) | |
parent | 8714b6e62007c8de816a0b7f4e053e25c6de31c8 (diff) | |
download | bugzilla-a456ec46452abaaaa5369c02886c7d5b03e592f3.tar.gz bugzilla-a456ec46452abaaaa5369c02886c7d5b03e592f3.tar.xz |
Merge from bugzilla/4.2
Diffstat (limited to 'template/en/default/search')
-rw-r--r-- | template/en/default/search/search-advanced.html.tmpl | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/template/en/default/search/search-advanced.html.tmpl b/template/en/default/search/search-advanced.html.tmpl index 2236bf5d2..780d54edd 100644 --- a/template/en/default/search/search-advanced.html.tmpl +++ b/template/en/default/search/search-advanced.html.tmpl @@ -31,12 +31,11 @@ [% js_data = BLOCK %] -var queryform = "queryform" - +var queryform = "queryform"; function remove_token() { - var asDefault = document.getElementById('remasdefault'); - if (queryform.token && asDefault && !asDefault.checked) { - queryform.token.value = ''; + if (queryform.token) { + var asDefault = document.getElementById('remasdefault'); + queryform.token.disabled = !asDefault.checked; } } [% END %] |