help class was only used for javascript

This commit is contained in:
2016-10-21 15:47:59 +02:00
parent caf48d3ef5
commit f5eb69703a

View File

@@ -46,7 +46,7 @@ html(lang="en")
ul.bottom ul.bottom
| {% if project %} | {% if project %}
li li
button.help( button.js-help(
type="button", type="button",
title="Help", title="Help",
data-url="{{ url_for('attract.help', project_url=project.url) }}") data-url="{{ url_for('attract.help', project_url=project.url) }}")
@@ -184,7 +184,7 @@ html(lang="en")
script(src="{{ url_for('static_pillar', filename='assets/js/vendor/jquery.select2.min.js') }}", async=true) script(src="{{ url_for('static_pillar', filename='assets/js/vendor/jquery.select2.min.js') }}", async=true)
script. script.
{% if project %} {% if project %}
$('.help').openModalUrl('Help', "{{ url_for('attract.help', project_url=project.url) }}"); $('.js-help').openModalUrl('Help', "{{ url_for('attract.help', project_url=project.url) }}");
{% endif %} {% endif %}
$(document).ready(function() { $(document).ready(function() {