summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorNoemi Vanyi <sitbackandwait@gmail.com>2016-07-17 19:03:42 +0200
committerNoemi Vanyi <sitbackandwait@gmail.com>2016-07-25 23:26:26 +0200
commit074521fd8a2893c723a69941f400a0e9f4002559 (patch)
treea0dce2edac46dcd39c6dc7d89daa14d567833683 /searx
parent2e8ab34d76fa0828199697d1f8fe2b37b4dc29b9 (diff)
follow up changes in search_category_on_select
Diffstat (limited to 'searx')
-rw-r--r--searx/static/plugins/js/search_on_category_select.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/searx/static/plugins/js/search_on_category_select.js b/searx/static/plugins/js/search_on_category_select.js
index 5ecc2cdb..a6dd447a 100644
--- a/searx/static/plugins/js/search_on_category_select.js
+++ b/searx/static/plugins/js/search_on_category_select.js
@@ -4,9 +4,7 @@ $(document).ready(function() {
$('#categories input[type="checkbox"]').each(function(i, checkbox) {
$(checkbox).prop('checked', false);
});
- $('#categories label').removeClass('btn-primary').removeClass('active').addClass('btn-default');
- $(this).removeClass('btn-default').addClass('btn-primary').addClass('active');
- $($(this).children()[0]).prop('checked', 'checked');
+ $(document.getElementById($(this).attr("for"))).prop('checked', true);
if($('#q').val()) {
$('#search_form').submit();
}