diff options
author | Noemi Vanyi <sitbackandwait@gmail.com> | 2016-07-17 19:03:42 +0200 |
---|---|---|
committer | Noemi Vanyi <sitbackandwait@gmail.com> | 2016-07-25 23:26:26 +0200 |
commit | 074521fd8a2893c723a69941f400a0e9f4002559 (patch) | |
tree | a0dce2edac46dcd39c6dc7d89daa14d567833683 /searx/static/plugins | |
parent | 2e8ab34d76fa0828199697d1f8fe2b37b4dc29b9 (diff) | |
download | searxng-074521fd8a2893c723a69941f400a0e9f4002559.tar.gz searxng-074521fd8a2893c723a69941f400a0e9f4002559.zip |
follow up changes in search_category_on_select
Diffstat (limited to 'searx/static/plugins')
-rw-r--r-- | searx/static/plugins/js/search_on_category_select.js | 4 |
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 5ecc2cdb9..a6dd447a0 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(); } |