diff --git a/src/jquery.uls.core.js b/src/jquery.uls.core.js index 368ce48..17d9797 100644 --- a/src/jquery.uls.core.js +++ b/src/jquery.uls.core.js @@ -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( { diff --git a/src/jquery.uls.lcd.js b/src/jquery.uls.lcd.js index 1d0dbc2..c0f1f06 100644 --- a/src/jquery.uls.lcd.js +++ b/src/jquery.uls.lcd.js @@ -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' ); }