+ add alway a new item "containing <searchpattern>" to force to go to the search engine

pull/9/head
kelson42 14 years ago
parent 523f8bc5a5
commit a74d192479

@ -219,10 +219,10 @@ static int accessHandlerCallback(void *cls,
string suggestion;
content = "[";
while (reader->getNextSuggestion(suggestion)) {
content += content == "[" ? "" : ",";
content += "{\"value\":\"" + suggestion + "\",\"label\":\"" + suggestion + "\"}";
}
content += "]";
content += content == "[" ? "" : ",";
content += "{\"value\":\"" + std::string(term) + " \", \"label\":\"containing '" + std::string(term) + "'...\"}]";
mimeType = "text/x-json; charset=utf-8";
}

Loading…
Cancel
Save