diff options
| author | Thomas Pointhuber <thomas.pointhuber@gmx.at> | 2014-09-29 09:44:29 +0200 |
|---|---|---|
| committer | Thomas Pointhuber <thomas.pointhuber@gmx.at> | 2014-10-05 14:40:47 +0200 |
| commit | 14b0604bc0a14a110c92457f43b3828fc22e7fc7 (patch) | |
| tree | 52e9ce9da9c2382f436f8c6b985fc5e4812fd7c4 /searx/templates | |
| parent | 4b7164f04a9acdda569db42c12a267fb9d2dbe94 (diff) | |
oscar template: implement autocompleter
Diffstat (limited to 'searx/templates')
| -rw-r--r-- | searx/templates/oscar/base.html | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/searx/templates/oscar/base.html b/searx/templates/oscar/base.html index 119533933..7507fcab1 100644 --- a/searx/templates/oscar/base.html +++ b/searx/templates/oscar/base.html @@ -9,6 +9,7 @@ <title>{% block title %}{% endblock %}searx</title> <link rel="stylesheet" href="{{ url_for('static', filename='css/bootstrap.min.css') }}" type="text/css" /> + {% if autocomplete %}<link rel="stylesheet" href="{{ url_for('static', filename='css/typeahead.css') }}" type="text/css" />{% endif %} <link rel="stylesheet" href="{{ url_for('static', filename='css/oscar.css') }}" type="text/css" /> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> @@ -28,6 +29,7 @@ <script type="text/javascript"> searx = {}; + searx.method = "{{ method or 'POST' }}"; searx.autocompleter = {% if autocomplete %}true{% else %}false{% endif %}; </script> </head> @@ -62,6 +64,7 @@ </div> <script src="{{ url_for('static', filename='js/jquery-1.11.1.min.js') }}"></script> <script src="{{ url_for('static', filename='js/bootstrap.min.js') }}"></script> + {% if autocomplete %}<script src="{{ url_for('static', filename='js/typeahead.bundle.min.js') }}"></script>{% endif %} <script src="{{ url_for('static', filename='js/scripts.js') }}"></script> </body> </html> |