Commit c3106a6a authored by Roland Denis's avatar Roland Denis
Browse files

Fixing Tipue search

Due to a wrong Jinja2 comment syntax.
Also reindenting...
parent 0d90e206
Pipeline #4205 passed with stages
in 51 seconds
......@@ -44,19 +44,19 @@ Rechercher sur le site du groupe Calcul
<script>
$(document).ready(function () {
$('#tipue_search_input').tipuesearch({
{% if 'tipue_search' in PLUGINS %}
'mode' : 'json',
{% if 'tipue_search' in PLUGINS %}
'mode' : 'json',
{% else %}
'mode': 'live',
'mode': 'live',
{% endif %}
'show': 10,
'newWindow': false,
'wholeWords': false,
{ # I cannot place following statements in the conditionals above because then Tipue Search fails to work.Possibly a bug in Tipue Search.# }
{% if not 'tipue_search' in PLUGINS %}
'liveDescription': '.article-content'
{% endif %}
});
});
'show': 10,
'newWindow': false,
'wholeWords': false,
{# I cannot place following statements in the conditionals above because then Tipue Search fails to work.Possibly a bug in Tipue Search. #}
{% if not 'tipue_search' in PLUGINS %}
'liveDescription': '.article-content'
{% endif %}
});
});
</script>
{% endblock script %}
\ No newline at end of file
{% endblock script %}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment