Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
周少峰
8 years ago
Commit
4afc298157c38ad660568b3e09df822d55986da0
1 parent
4041b61e
form entrer submit
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
apps/help/views/partial/search-form.hbs
public/js/help/help-search.js
apps/help/views/partial/search-form.hbs
View file @
4afc298
...
...
@@ -2,6 +2,7 @@
<div
class=
"search-area"
>
<form
id=
"help-search-form"
action=
"
{{
siteUrl
}}
/help/detail"
>
<input
type=
"text"
class=
"help-search"
autocomplete=
"off"
name=
"helpQuery"
value=
"
{{
helpQuery
}}
"
>
<input
type=
"text"
class=
"hide"
>
<span
class=
"iconfont search-btn"
>

</span>
</form>
</div>
...
...
public/js/help/help-search.js
View file @
4afc298
...
...
@@ -26,6 +26,7 @@ var helpSearch = {
});
_this
.
$search
.
keyup
(
function
(
e
)
{
var
key
=
$
(
this
).
val
();
if
(
key
===
'请输入您想知道的帮助信息'
)
{
...
...
@@ -35,10 +36,7 @@ var helpSearch = {
if
(
e
.
which
===
13
)
{
if
(
key
)
{
_this
.
searchYas
(
key
);
setTimeout
(
function
()
{
$helpSearchForm
.
submit
();
},
500
);
$helpSearchForm
.
submit
();
}
}
});
...
...
Please
register
or
login
to post a comment