mirror of
https://github.com/caojiezi2003/Snavigation.git
synced 2024-11-23 19:39:46 +00:00
搜索框为空时阻止搜索
This commit is contained in:
parent
6f48c6ed2d
commit
35ba36660a
@ -143,7 +143,9 @@ $(window).keydown(function (e) {
|
|||||||
//点击搜索按钮
|
//点击搜索按钮
|
||||||
$(".sou-button").click(function () {
|
$(".sou-button").click(function () {
|
||||||
if ($("body").attr("class") === "onsearch") {
|
if ($("body").attr("class") === "onsearch") {
|
||||||
$("#search-submit").click();
|
if ($(".wd").val() != "") {
|
||||||
|
$("#search-submit").click();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user