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
d093fbb0
Unverified
Commit
d093fbb0
authored
Apr 19, 2020
by
celogeek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Keep previous search value and focus
parent
902685a1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
layout.html
cps/templates/layout.html
+6
-1
No files found.
cps/templates/layout.html
View file @
d093fbb0
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
<form
class=
"navbar-form navbar-left"
role=
"search"
action=
"{{url_for('web.search')}}"
method=
"GET"
>
<form
class=
"navbar-form navbar-left"
role=
"search"
action=
"{{url_for('web.search')}}"
method=
"GET"
>
<div
class=
"form-group input-group input-group-sm"
>
<div
class=
"form-group input-group input-group-sm"
>
<label
for=
"query"
class=
"sr-only"
>
{{_('Search')}}
</label>
<label
for=
"query"
class=
"sr-only"
>
{{_('Search')}}
</label>
<input
type=
"text"
class=
"form-control"
id=
"query"
name=
"query"
placeholder=
"{{_('Search Library')}}"
>
<input
type=
"text"
class=
"form-control"
id=
"query"
name=
"query"
placeholder=
"{{_('Search Library')}}"
value=
"{{searchterm}}"
>
<span
class=
"input-group-btn"
>
<span
class=
"input-group-btn"
>
<button
type=
"submit"
id=
"query_submit"
class=
"btn btn-default"
>
{{_('Search')}}
</button>
<button
type=
"submit"
id=
"query_submit"
class=
"btn btn-default"
>
{{_('Search')}}
</button>
</span>
</span>
...
@@ -224,6 +224,11 @@
...
@@ -224,6 +224,11 @@
$
(
"#btn-upload"
).
change
(
function
()
{
$
(
"#btn-upload"
).
change
(
function
()
{
$
(
"#form-upload"
).
submit
();
$
(
"#form-upload"
).
submit
();
});
});
$
(
document
).
ready
(
function
()
{
var
inp
=
$
(
'#query'
).
first
()
var
val
=
inp
.
val
()
inp
.
val
(
''
).
blur
().
focus
().
val
(
val
)
});
});
});
</script>
</script>
{% block js %}{% endblock %}
{% block js %}{% endblock %}
...
...
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