Use typewatch for previewing comments

This commit is contained in:
2018-03-28 23:35:59 +02:00
parent 5b061af3a5
commit d10bdea6c5
2 changed files with 23 additions and 35 deletions

View File

@@ -83,10 +83,8 @@ html(lang="en")
script(src="{{ url_for('static_pillar', filename='assets/js/vendor/jquery.bootstrap-3.3.7.min.js') }}")
| {% block footer_scripts_pre %}{% endblock %}
| {% block footer_scripts %}{% endblock %}
| {% if current_user.is_authenticated() %}
script(src="{{ url_for('static_pillar', filename='assets/js/vendor/jquery.typewatch-3.0.0.min.js') }}")
script.
// When sending an AJAX request, always add the X-CSRFToken header to it.
var csrf_token = "{{ csrf_token() }}";
@@ -97,6 +95,10 @@ html(lang="en")
}
}
});
| {% endif %}
| {% block footer_scripts_pre %}{% endblock %}
| {% block footer_scripts %}{% endblock %}
script.
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){