Skip to content

Commit 4f36598

Browse files
MetalBlazerroot
andauthored
updated ajax typing (#33)
Co-authored-by: root <root@localhost.localdomain>
1 parent 88432c6 commit 4f36598

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

static/website/js/custom.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ $(document).ready(function() {
100100
});
101101

102102
$title.keyup(function() {
103+
var len = $title.val().split(' ').length;
104+
if(len>=2){
105+
103106
$.ajax({
104107
url: "/ajax-similar-questions/",
105108
type: "POST",
@@ -118,6 +121,7 @@ $(document).ready(function() {
118121
$("#modal-body").html(data);
119122
}
120123
});
124+
}
121125
});
122126

123127

0 commit comments

Comments
 (0)