mirror of
				https://github.com/janeczku/calibre-web
				synced 2025-10-31 07:13:02 +00:00 
			
		
		
		
	Fix datepicker localized month names
Removed redundant parenthesis in kobo.py response
This commit is contained in:
		| @@ -961,7 +961,7 @@ def HandleBookDeletionRequest(book_uuid): | |||||||
|  |  | ||||||
|     ub.session.merge(archived_book) |     ub.session.merge(archived_book) | ||||||
|     ub.session_commit() |     ub.session_commit() | ||||||
|     return ("", 204) |     return "", 204 | ||||||
|  |  | ||||||
|  |  | ||||||
| # TODO: Implement the following routes | # TODO: Implement the following routes | ||||||
|   | |||||||
| @@ -23,6 +23,7 @@ if ($(".tiny_editor").length) { | |||||||
|  |  | ||||||
| $(".datepicker").datepicker({ | $(".datepicker").datepicker({ | ||||||
|     format: "yyyy-mm-dd", |     format: "yyyy-mm-dd", | ||||||
|  |     language: language | ||||||
| }).on("change", function () { | }).on("change", function () { | ||||||
|     // Show localized date over top of the standard YYYY-MM-DD date |     // Show localized date over top of the standard YYYY-MM-DD date | ||||||
|     var pubDate; |     var pubDate; | ||||||
|   | |||||||
| @@ -229,6 +229,9 @@ | |||||||
| {% endblock %} | {% endblock %} | ||||||
|  |  | ||||||
| {% block js %} | {% block js %} | ||||||
|  | <script> | ||||||
|  |   var language = '{{ g.user.locale }}'; | ||||||
|  | </script> | ||||||
| <script src="{{ url_for('static', filename='js/libs/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script> | <script src="{{ url_for('static', filename='js/libs/bootstrap-datepicker/bootstrap-datepicker.min.js') }}"></script> | ||||||
| {% if not g.user.locale == 'en' %} | {% 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> | <script src="{{ url_for('static', filename='js/libs/bootstrap-datepicker/locales/bootstrap-datepicker.' + g.user.locale + '.min.js') }}" charset="UTF-8"></script> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Ozzie Isaacs
					Ozzie Isaacs