Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
douban-api-proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
douban-api-proxy
Commits
666015e8
Commit
666015e8
authored
Oct 16, 2021
by
Ozzie Isaacs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix datepicker localized month names
Removed redundant parenthesis in kobo.py response
parent
9d5e9b28
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
kobo.py
cps/kobo.py
+1
-1
edit_books.js
cps/static/js/edit_books.js
+1
-0
search_form.html
cps/templates/search_form.html
+3
-0
No files found.
cps/kobo.py
View file @
666015e8
...
...
@@ -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
...
...
cps/static/js/edit_books.js
View file @
666015e8
...
...
@@ -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
;
...
...
cps/templates/search_form.html
View file @
666015e8
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment