mirror of
				https://github.com/janeczku/calibre-web
				synced 2025-10-30 23:03: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_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> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Ozzie Isaacs
					Ozzie Isaacs