3
0
Fork 0

+ fix small bug in autosuggest

small_fixes
kelson42 13 years ago
parent a74d192479
commit 6e514f44f5

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

Loading…
Cancel
Save