Permalink
Browse files

minor patch to listview refresh for search results

  • Loading branch information...
1 parent 574b377 commit f22b4745d554c04289f417dd1fde6c149596cf82 @addyosmani committed Dec 17, 2011
Showing with 5 additions and 4 deletions.
  1. +4 −4 app/views/resultList.js
  2. +1 −0 index.html
View
@@ -12,6 +12,7 @@ define( ['jquery', 'backbone', 'underscore'],
renderList: function( collection ) {
+
var compiled_template = _.template( $( "#listviewul" ).html() );
mobileSearch.utils.loadPrompt( "Loading results..." );
@@ -20,11 +21,10 @@ define( ['jquery', 'backbone', 'underscore'],
collection.resultlist.el.html( compiled_template( { results: collection.models } ) );
+
setTimeout( function() {
- var $search = $( '#search' );
- //$search.find("ul").listview();
- //$search.find( "ul" ).listview( "refresh" );
- }, 10 );
+ collection.resultlist.el.listview('refresh');
+ }, 50 );
}
View
@@ -3,6 +3,7 @@
<head>
<meta charset="utf-8"/>
+ <meta http-equiv = "Pragma" content="no-cache"/>
<title>Flickly</title>
<link rel="shortcut" href="img/flickly.png">

0 comments on commit f22b474

Please sign in to comment.