Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

minor patch to listview refresh for search results

  • Loading branch information...
commit f22b4745d554c04289f417dd1fde6c149596cf82 1 parent 574b377
Addy Osmani authored

Showing 2 changed files with 5 additions and 4 deletions. Show diff stats Hide diff stats

  1. +4 4 app/views/resultList.js
  2. +1 0  index.html
8 app/views/resultList.js
@@ -12,6 +12,7 @@ define( ['jquery', 'backbone', 'underscore'],
12 12
13 13 renderList: function( collection ) {
14 14
  15 +
15 16 var compiled_template = _.template( $( "#listviewul" ).html() );
16 17
17 18 mobileSearch.utils.loadPrompt( "Loading results..." );
@@ -20,11 +21,10 @@ define( ['jquery', 'backbone', 'underscore'],
20 21
21 22 collection.resultlist.el.html( compiled_template( { results: collection.models } ) );
22 23
  24 +
23 25 setTimeout( function() {
24   - var $search = $( '#search' );
25   - //$search.find("ul").listview();
26   - //$search.find( "ul" ).listview( "refresh" );
27   - }, 10 );
  26 + collection.resultlist.el.listview('refresh');
  27 + }, 50 );
28 28
29 29
30 30 }
1  index.html
@@ -3,6 +3,7 @@
3 3
4 4 <head>
5 5 <meta charset="utf-8"/>
  6 + <meta http-equiv = "Pragma" content="no-cache"/>
6 7 <title>Flickly</title>
7 8
8 9 <link rel="shortcut" href="img/flickly.png">

0 comments on commit f22b474

Please sign in to comment.
Something went wrong with that request. Please try again.