Commit 666015e8 authored by Ozzie Isaacs's avatar Ozzie Isaacs

Fix datepicker localized month names

Removed redundant parenthesis in kobo.py response
parent 9d5e9b28
......@@ -961,7 +961,7 @@ def HandleBookDeletionRequest(book_uuid):
ub.session.merge(archived_book)
ub.session_commit()
return ("", 204)
return "", 204
# TODO: Implement the following routes
......
......@@ -23,6 +23,7 @@ if ($(".tiny_editor").length) {
$(".datepicker").datepicker({
format: "yyyy-mm-dd",
language: language
}).on("change", function () {
// Show localized date over top of the standard YYYY-MM-DD date
var pubDate;
......
......@@ -229,6 +229,9 @@
{% endblock %}
{% block js %}
<script>
var language = '{{ g.user.locale }}';
</script>
<script src="{{ url_for('static', filename='js/libs/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script>
{% if not g.user.locale == 'en' %}
<script src="{{ url_for('static', filename='js/libs/bootstrap-datepicker/locales/bootstrap-datepicker.' + g.user.locale + '.min.js') }}" charset="UTF-8"></script>
......
Markdown is supported
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