Skip to content

Commit

Permalink
chore(example): stay consistent in id= in examples
Browse files Browse the repository at this point in the history
whe use hyphens like other widgets were using
  • Loading branch information
vvo committed Sep 22, 2015
1 parent 45ac052 commit 827e779
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -326,13 +326,13 @@ Note that we are not toggling from `true` to `false` here, but from `true` to
`undefined`.

```html
<div id="free_shipping"></div>
<div id="free-shipping"></div>
```

```javascript
search.addWidget(
instantsearch.widgets.toggle({
container: '#free_shipping',
container: '#free-shipping',
facetName: 'free_shipping',
label: 'Free Shipping',
template: '<label><input type="checkbox" {{#isRefined}}checked{{/isRefined}} />{{label}}</label>'
Expand Down
6 changes: 3 additions & 3 deletions example/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ search.addWidget(

search.addWidget(
instantsearch.widgets.refinementList({
container: '#price_range',
container: '#price-range',
facetName: 'price_range',
operator: 'and',
limit: 10,
Expand All @@ -76,10 +76,10 @@ search.addWidget(

search.addWidget(
instantsearch.widgets.toggle({
container: '#free_shipping',
container: '#free-shipping',
facetName: 'free_shipping',
label: 'Free Shipping',
template: require('./templates/free_shipping.html')
template: require('./templates/free-shipping.html')
})
);

Expand Down
2 changes: 1 addition & 1 deletion example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h1>Instant search demo <small>using instantsearch.js</small></h1>
<div class="panel-heading">Shipping</div>
<div class="panel-body">
<ul class="nav nav-stacked">
<li><div id="free_shipping"></div></li>
<li><div id="free-shipping"></div></li>
</ul>
</div>
</div>
Expand Down
File renamed without changes.

0 comments on commit 827e779

Please sign in to comment.