commit: 074521fd8a2893c723a69941f400a0e9f4002559
parent 2e8ab34d76fa0828199697d1f8fe2b37b4dc29b9
Author: Noemi Vanyi <sitbackandwait@gmail.com>
Date: Sun, 17 Jul 2016 19:03:42 +0200
follow up changes in search_category_on_select
Diffstat:
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git 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();
}