Fix issue #24 - Search results replaced with full list when scrolling

Change-Id: Iba3a798c9b4980943aded1ed145081fecc0367e3
This commit is contained in:
Santhosh Thottingal
2012-11-08 15:43:36 +05:30
parent 06384a02e4
commit 0be1e38d14
2 changed files with 3 additions and 2 deletions

View File

@@ -223,7 +223,8 @@
languages: that.languages,
quickList: that.options.quickList,
clickhandler: $.proxy( that.onSelect, that ),
lazyload: that.options.lazyload
lazyload: that.options.lazyload,
source: that.$languageFilter
} ).data( "lcd" );
that.$languageFilter.languagefilter( {

View File

@@ -262,7 +262,7 @@
var $ulsLanguageList = $( this ),
scrollTop = $ulsLanguageList.position().top,
scrollBottom = $ulsLanguageList.height();
if ( lcd.options.lazyload ) {
if ( lcd.options.lazyload && lcd.options.source.val() === '' ) {
if ( this.offsetHeight + this.scrollTop >= this.scrollHeight / 2 ) {
lcd.$element.trigger( 'scrollend' );
}