Commit graph

10 commits

Author SHA1 Message Date
Martin Fischer
bfc9207171 [fix 1/3] display checkboxes by default
The search tabs are actually labels for checkboxes because multiple can
be selected.  To still make them work like tabs the plugin
search_on_category_select adds a JavaScript that submits the form on
label click.

The problem with this is that when the plugin is disabled (e.g. because
JavaScript is disabled or a user chose to disable it in the settings),
then the tabs still look like tabs but act as checkboxes
(which is very confusing).

This commit changes fixes this so that the checkboxes are visible by
default.  The next commit makes the plugin hide them again. This way
they are visible when the plugin is disabled ... as they should be.
2022-01-07 11:33:01 +01:00
Martin Fischer
2c7dc9d358 [refactor] make templates/oscar/categories.html dry 2022-01-07 11:33:01 +01:00
Martin Fischer
8e9ad1ccc2 [enh] introduce categories_as_tabs
Previously all categories were displayed as search engine tabs.
This commit changes that so that only the categories listed under
categories_as_tabs in settings.yml are displayed.

This lets us introduce more categories without cluttering up the UI.
Categories not displayed as tabs  can still be searched with !bangs.
2022-01-03 07:01:49 +01:00
Dalf
f34ac58752 [mod] tidy oscar HTML output 2019-12-10 10:58:30 +01:00
Adam Tauber
9782633054 [fix] menu without js - closes #747 2016-11-01 23:12:46 +01:00
Adam Tauber
bf92aa3fdd [fix] wrap categories on small screens ++ some code formatting - closes #647 2016-07-27 02:08:24 +02:00
Noemi Vanyi
2e8ab34d76 add advanced settings for logicodev style 2016-07-25 23:26:26 +02:00
Adam Tauber
df9cf9d09b Merge branch 'rtl' of github.com:Cqoicebordel/searx 2015-02-10 15:23:56 +01:00
Thomas Pointhuber
5bfaabeb6b [enh] add nojs support into oscar-template 2015-01-15 15:48:50 +01:00
Thomas Pointhuber
25919de608 oscar template: make the categories clickable 2014-10-05 14:40:46 +02:00