Widget:KeywordSearch: Difference between revisions
Jump to navigation
Jump to search
Matt Pijoan (talk | contribs) No edit summary |
Matt Pijoan (talk | contribs) No edit summary |
||
Line 66: | Line 66: | ||
.always(function (data) { | .always(function (data) { | ||
$.each(data.query.results, function(index, value){ | $.each(data.query.results, function(index, value){ | ||
obj.questionListAll.push(value.fulltext); | obj.questionListAll.push(value.fulltext); | ||
}); | }); | ||
Line 82: | Line 80: | ||
$.each(obj.questionListAll, function(index, value){ | $.each(obj.questionListAll, function(index, value){ | ||
if(obj.questionListAll[i] === value){ | if(obj.questionListAll[i] === value){ | ||
obj.questionListAll.splice( | console.log(value); | ||
obj.questionListAll.splice(index, 1); | |||
return false; | return false; | ||
} | } |