Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

minor patch to listview refresh for search results

  • Loading branch information...
commit f22b4745d554c04289f417dd1fde6c149596cf82 1 parent 574b377
@addyosmani authored
Showing with 5 additions and 4 deletions.
  1. +4 −4 app/views/resultList.js
  2. +1 −0  index.html
View
8 app/views/resultList.js
@@ -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
1  index.html
@@ -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">
Please sign in to comment.
Something went wrong with that request. Please try again.