summaryrefslogtreecommitdiff
path: root/searx/templates/base.html
diff options
context:
space:
mode:
authorThomas Pointhuber <thomas.pointhuber@gmx.at>2014-03-21 11:11:31 +0100
committerThomas Pointhuber <thomas.pointhuber@gmx.at>2014-03-21 11:11:31 +0100
commitc8cf95aa56590800c4f2d39a39d0a70537e7382e (patch)
treec23b01cdebee0c4cbaf6db5ed7a429cf571ae69c /searx/templates/base.html
parentcc7f3cb61798463036a886ae5f0ccd06aca5e625 (diff)
deactivate autocompleter by default
Diffstat (limited to 'searx/templates/base.html')
-rw-r--r--searx/templates/base.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/searx/templates/base.html b/searx/templates/base.html
index 2823c684e..d86982a59 100644
--- a/searx/templates/base.html
+++ b/searx/templates/base.html
@@ -13,13 +13,19 @@
{% block head %}
<link title="searx" type="application/opensearchdescription+xml" rel="search" href="{{ url_for('opensearch') }}"/>
{% endblock %}
+ <script type="text/javascript">
+ searx = {};
+ searx.autocompleter = {% if client.autocompleter %}true{% else %}false{% endif %};
+ </script>
</head>
<body>
<div id="container">
{% block content %}
{% endblock %}
+{% if client.autocompleter %}
<script src="{{ url_for('static', filename='js/mootools-core-1.4.5-min.js') }}" ></script>
<script src="{{ url_for('static', filename='js/mootools-autocompleter-1.1.2-min.js') }}" ></script>
+{% endif %}
<script src="{{ url_for('static', filename='js/searx.js') }}" ></script>
</div>
</body>