summaryrefslogtreecommitdiffstats
path: root/template/en/default/search
diff options
context:
space:
mode:
Diffstat (limited to 'template/en/default/search')
-rw-r--r--template/en/default/search/search-advanced.html.tmpl9
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 %]