How do I fix my data-filter going from 1.2 to 1.3?
Making a demo of this app I used JQuery 1.8 and JQM 1.2. Now that I want to get it ready for production I bumped the versions up and my data-filter stoped working.
I have a listview:
- <div id="listPlaceHolder" data-theme="a" data-role="listview" data-filter="true"></div>
After fetching some data I'm adding an accordion to it using handlebars:
- <script id="event-template" type="text/x-handlebars-template">
- <div class="dataitem" data-role="collapsible" data-inset="false" data-collapsed="true" data-collapsed-icon="noshow" data-expanded-icon="noshow" data-eventid="{{id}}">
- <h3> ...
And then:
- $('.dataitem').collapsible();
This used to work but now I can't get the filter to work. I've tried adding:
- $('#listPlaceHolder').listview('refresh');
... without luck.
Really greatfull for ideas on how to get the filter working.