File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -734,7 +734,7 @@ This filtering widget lets the user choose between ranges of price. Those ranges
734734{% highlight javascript %}
735735search.addWidget(
736736 instantsearch.widgets.priceRanges({
737- container: '#priceranges.widget-container ',
737+ container: '#price-ranges ',
738738 attributeName: 'price',
739739 labels: {
740740 currency: '$',
@@ -772,7 +772,7 @@ instantsearch.widgets.priceRanges(options);
772772
773773</div >
774774
775- <div id =" priceranges " class =" widget-container " ></div >
775+ <div id =" price-ranges " class =" widget-container " ></div >
776776
777777### Sort
778778
Original file line number Diff line number Diff line change 9595 function htmlTabs ( ) {
9696 $ ( '.widget-container' ) . each ( function ( ) {
9797 var id = $ ( this ) . attr ( 'id' ) ;
98- var buttons = $ ( '.code-box pre:contains("#' + id + '")' ) . closest ( '.code-box' ) . find ( '.btn-group' ) ;
98+ var buttons = $ ( '.code-box pre:contains("container: \' #' + id + '\ '")') . closest ( '.code-box' ) . find ( '.btn-group' ) ;
9999 buttons . append ( '<button type="button" class="toggle-doc-button html-btn btn btn-default btn-sm" data-widget-container="' + id + '">View HTML</button>' ) ;
100100 buttons . after ( '<pre class="html-container highlight" id="html-' + id + '" style="display: none"></pre>' ) ;
101101 } ) ;
You can’t perform that action at this time.
0 commit comments