Fix datepicker localized month names

Removed redundant parenthesis in kobo.py response
This commit is contained in:
Ozzie Isaacs 2021-10-16 20:50:04 +02:00
parent 9d5e9b28ae
commit 666015e867
3 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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;

View File

@ -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>