Authored by 周少峰

form entrer submit

... ... @@ -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">&#xe6d5;</span>
</form>
</div>
... ...
... ... @@ -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();
}
}
});
... ...