Permalink
Browse files

Listview filter: added parameters to _addFirstLastClasses()

  • Loading branch information...
jaspermdegroot committed Nov 10, 2012
1 parent 89d9816 commit 7f5918dd17a2b4dafb00bfed809253c1286ffa69
Showing with 2 additions and 1 deletion.
  1. +2 −1 js/widgets/listview.filter.js
@@ -46,6 +46,7 @@ $( document ).delegate( "ul, ol", "listviewcreate", function() {
var $this = $( this ),
val = this.value.toLowerCase(),
listItems = null,
li = list.children(),
lastval = $this.jqmData( "lastval" ) + "",
childItems = false,
itemtext = "",
@@ -114,7 +115,7 @@ $( document ).delegate( "ul, ol", "listviewcreate", function() {
//filtervalue is empty => show all
listItems.toggleClass( "ui-screen-hidden", !!listview.options.filterReveal );
}
listview._addFirstLastClasses();
listview._addFirstLastClasses( li, listview._getVisibles( li, false ), false );
})
.appendTo( wrapper )
.textinput();

0 comments on commit 7f5918d

Please sign in to comment.