Commit b52311e9 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki Committed by Jérome Perrin

display score in the result list.

parent 8725d6a3
......@@ -329,8 +329,8 @@
$("#json_result").val(JSON.stringify(data['success'],
undefined, " "));
$.each(data['success'], function (idx, obj) {
$('#result_list').append('<li class="result">' + idx + ' : ' + obj['key'] + '</li>');
$('#result_list').children().last().click(
$('#result_list').append('<li class="result"></li>');
$('#result_list').children().last().text(idx + ' : ' + obj['score'] + ' ' + obj['key']).click(
function (e) {
dream_instance.displayResult(idx);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment