Include same word as query to suggestion
This commit is contained in:
parent
958d917b6a
commit
a370481802
1 changed files with 4 additions and 21 deletions
|
@ -137,27 +137,10 @@ $.fn.suggestor = function(setting) {
|
|||
var str = reslist[i];
|
||||
var chkCorrectWord = true;
|
||||
|
||||
/*
|
||||
//suggestionの子要素かチェック
|
||||
var parentEle = $(reslist[i]).closest("arr");
|
||||
if(typeof parentEle === "undefined") {
|
||||
continue;
|
||||
} else if($(parentEle).attr("name") != "suggestion") {
|
||||
continue;
|
||||
}
|
||||
*/
|
||||
|
||||
//すでに同じ文字が表示されてないかチェック。ゴミ抜き
|
||||
if(str === $textArea.val()) {
|
||||
chkCorrectWord = false;
|
||||
//} else if(0 != str.indexOf($textArea.val())) {
|
||||
// chkCorrectWord = false;
|
||||
} else {
|
||||
var $tmpli = $($olEle.children("li"));
|
||||
for(var j=0;j<$tmpli.size();j++) {
|
||||
if(str == $($tmpli.get(j)).html()) {
|
||||
chkCorrectWord = false;
|
||||
}
|
||||
var $tmpli = $($olEle.children("li"));
|
||||
for(var j=0;j<$tmpli.size();j++) {
|
||||
if(str == $($tmpli.get(j)).html()) {
|
||||
chkCorrectWord = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue