[enh] autocompleter server side part

This commit is contained in:
Adam Tauber 2014-03-29 16:29:19 +01:00
parent 20504a0e83
commit 41dd4d9ba3
5 changed files with 69 additions and 28 deletions

View file

@ -15,14 +15,14 @@
{% endblock %}
<script type="text/javascript">
searx = {};
searx.autocompleter = {% if client.autocompleter %}true{% else %}false{% endif %};
searx.autocompleter = {% if autocomplete %}true{% else %}false{% endif %};
</script>
</head>
<body>
<div id="container">
{% block content %}
{% endblock %}
{% if client.autocompleter %}
{% if autocomplete %}
<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 %}