1

Display restaraunt IDs instead of search enumerator

This commit is contained in:
Alex Yatskov 2014-10-17 18:10:53 +09:00
parent 4ba4799083
commit 7f164ca4ca
2 changed files with 4 additions and 3 deletions

View File

@ -141,14 +141,14 @@
<table class="table table-striped table-condensed">
<thead>
<tr>
<th>#</th>
<th>Id</th>
<th>Name</th>
<th>Score</th>
</tr>
</thead>
{{#each results}}
<tr>
<td>{{@index}}</td>
<td>{{id}}</td>
<td><a href="{{url}}">{{name}}</a></td>
<td>{{score}}</td>
</tr>

View File

@ -113,7 +113,8 @@ function findRecords(data, searchParams, minScore) {
results.push({
name: record.name,
url: 'http://www.tripadvisor.com' + record.relativeUrl,
score: score
score: score,
id: record.id
});
});