Remove lazyload functionality entirely

It was merely a stopgap solution to the problem of the dialog taking
forever to load. With that problem solved all of this awful code is no
longer needed.
This commit is contained in:
MatmaRex
2013-06-14 01:44:50 +02:00
committed by Santhosh Thottingal
parent 8341bb8e21
commit 8a1e3eb18e
3 changed files with 3 additions and 47 deletions

View File

@@ -287,11 +287,6 @@
scrollTop = $ulsLanguageList.position().top,
scrollBottom = $ulsLanguageList.height();
if ( lcd.options.lazyload && lcd.options.source.val() === '' ) {
if ( this.offsetHeight + this.scrollTop >= this.scrollHeight / 2 ) {
lcd.$element.trigger( 'scrollend' );
}
}
// The region section need to be in sync with the map filter.
inviewRegion = 'WW';
lcd.$element.find( 'div.uls-lcd-region-section' ).each( function () {
@@ -332,8 +327,7 @@
$.fn.lcd.defaults = {
languages: null,
showRegions: ['WW', 'AM', 'EU', 'ME', 'AF', 'AS', 'PA'],
lazyload: false
showRegions: ['WW', 'AM', 'EU', 'ME', 'AF', 'AS', 'PA']
};
$.fn.lcd.Constructor = LanguageCategoryDisplay;