mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00

The previous commit introduced a new plugin Resource API. This commit implements the necessary changes in the simple theme. (There's no change to infinite_scroll.py because it hasn't actually yet been implemented in the Simple theme.)
30 lines
1.1 KiB
Python
30 lines
1.1 KiB
Python
'''
|
|
searx is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU Affero General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
searx is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU Affero General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Affero General Public License
|
|
along with searx. If not, see < http://www.gnu.org/licenses/ >.
|
|
|
|
(C) 2015 by Adam Tauber, <asciimoo@gmail.com>
|
|
'''
|
|
from flask_babel import gettext
|
|
from . import Resource
|
|
|
|
name = gettext('Search on category select')
|
|
description = gettext(
|
|
'Perform search immediately if a category selected. ' 'Disable to select multiple categories. (JavaScript required)'
|
|
)
|
|
default_on = True
|
|
preference_section = 'ui'
|
|
|
|
js_dependencies = (
|
|
Resource(path='plugins/js/search_on_category_select.js', themes=('oscar',)),
|
|
Resource(path='themes/simple/src/js/plugins/search_on_category_select.js', themes=('simple',)),
|
|
)
|