summaryrefslogtreecommitdiff
path: root/searx/templates/oscar/base.html
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2019-08-06 12:25:25 +0200
committerGitHub <noreply@github.com>2019-08-06 12:25:25 +0200
commit8e62f7600f4582b913c92d56ffbafc22e37abe3b (patch)
tree48d64f887e762423ba588ce03cdd4453ee30c088 /searx/templates/oscar/base.html
parente4e8e6da4c90d3d65418aeaf1d7ebfc64c497685 (diff)
parent6fbba63c83b18a652e571ce5a803773cd72e5b6a (diff)
Merge pull request #1647 from dalf/no-inline-script
No inline script for oscar and simple theme
Diffstat (limited to 'searx/templates/oscar/base.html')
-rw-r--r--searx/templates/oscar/base.html10
1 files changed, 3 insertions, 7 deletions
diff --git a/searx/templates/oscar/base.html b/searx/templates/oscar/base.html
index 243e8b3d7..321784ebb 100644
--- a/searx/templates/oscar/base.html
+++ b/searx/templates/oscar/base.html
@@ -37,12 +37,6 @@
{% endblock %}
<link title="{{ instance_name }}" type="application/opensearchdescription+xml" rel="search" href="{{ url_for('opensearch') }}"/>
-
- <script type="text/javascript">
- searx = {};
- searx.method = "{{ method or 'POST' }}";
- searx.autocompleter = {% if autocomplete %}true{% else %}false{% endif %};
- </script>
<noscript>
<style type="text/css">
.tab-content > .active_if_nojs, .active_if_nojs {display: block !important; visibility: visible !important;}
@@ -101,7 +95,9 @@
<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/require-2.1.15.min.js') }}"></script>
- <script src="{{ url_for('static', filename='js/searx.min.js') }}"></script>
+ <script src="{{ url_for('static', filename='js/searx.min.js') }}"
+ data-method="{{ method or 'POST' }}"
+ data-autocompleter="{% if autocomplete %}true{% else %}false{% endif %}"></script>
{% for script in scripts %}
<script src="{{ url_for('static', filename=script) }}"></script>
{% endfor %}