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
b7535b95
Commit
b7535b95
authored
May 21, 2020
by
OzzieIsaacs
Browse files
Options
Browse Files
Download
Plain Diff
Merging master branch
- fix title sort function - fix focus on search
parents
0cf1cc55
098dab88
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
db.py
cps/db.py
+1
-1
layout.html
cps/templates/layout.html
+3
-1
No files found.
cps/db.py
View file @
b7535b95
...
@@ -449,7 +449,7 @@ class CalibreDB(threading.Thread):
...
@@ -449,7 +449,7 @@ class CalibreDB(threading.Thread):
match
=
title_pat
.
search
(
title
)
match
=
title_pat
.
search
(
title
)
if
match
:
if
match
:
prep
=
match
.
group
(
1
)
prep
=
match
.
group
(
1
)
title
=
title
.
replace
(
prep
,
''
)
+
', '
+
prep
title
=
title
[
len
(
prep
):]
+
', '
+
prep
return
title
.
strip
()
return
title
.
strip
()
conn
=
conn
or
self
.
session
.
connection
()
.
connection
.
connection
conn
=
conn
or
self
.
session
.
connection
()
.
connection
.
connection
...
...
cps/templates/layout.html
View file @
b7535b95
...
@@ -228,7 +228,9 @@
...
@@ -228,7 +228,9 @@
$
(
document
).
ready
(
function
()
{
$
(
document
).
ready
(
function
()
{
var
inp
=
$
(
'#query'
).
first
()
var
inp
=
$
(
'#query'
).
first
()
var
val
=
inp
.
val
()
var
val
=
inp
.
val
()
inp
.
val
(
''
).
blur
().
focus
().
val
(
val
)
if
(
val
.
length
)
{
inp
.
val
(
''
).
blur
().
focus
().
val
(
val
)
}
});
});
});
});
</script>
</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