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
b0f48b7f
Commit
b0f48b7f
authored
May 26, 2021
by
Ozzie Isaacs
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into Develop
parents
4392fec7
94b07d05
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
edit_books.js
cps/static/js/edit_books.js
+6
-0
book_edit.html
cps/templates/book_edit.html
+4
-0
No files found.
cps/static/js/edit_books.js
View file @
b0f48b7f
...
...
@@ -263,3 +263,9 @@ $("#btn-upload-cover").on("change", function () {
$
(
"#upload-cover"
).
html
(
filename
);
});
$
(
"#xchange"
).
click
(
function
()
{
this
.
blur
();
var
title
=
$
(
"#book_title"
).
val
();
$
(
"#book_title"
).
val
(
$
(
"#bookAuthor"
).
val
());
$
(
"#bookAuthor"
).
val
(
title
);
});
cps/templates/book_edit.html
View file @
b0f48b7f
...
...
@@ -53,6 +53,10 @@
<label
for=
"book_title"
>
{{_('Book Title')}}
</label>
<input
type=
"text"
class=
"form-control"
name=
"book_title"
id=
"book_title"
value=
"{{book.title}}"
>
</div>
<div
class=
"text-center"
>
<button
type=
"button"
class=
"btn btn-default"
id=
"xchange"
><span
class=
"glyphicon glyphicon-arrow-up"
></span><span
class=
"glyphicon glyphicon-arrow-down"
></span></button>
</div>
<div
class=
"form-group"
>
<label
for=
"bookAuthor"
>
{{_('Author')}}
</label>
<input
type=
"text"
class=
"form-control typeahead"
name=
"author_name"
id=
"bookAuthor"
value=
"{{' & '.join(authors)}}"
autocomplete=
"off"
>
...
...
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