Merge pull request #63 from amire80/bug_43568

Render every region only once
This commit is contained in:
Santhosh Thottingal
2013-01-07 06:44:04 -08:00
2 changed files with 15 additions and 13 deletions

View File

@@ -272,7 +272,8 @@
// The region section need to be in sync with the map filter.
lcd.$element.scroll( function () {
var $ulsLanguageList = $( this ),
var inview, inviewRegion,
$ulsLanguageList = $( this ),
scrollTop = $ulsLanguageList.position().top,
scrollBottom = $ulsLanguageList.height();
@@ -282,7 +283,7 @@
}
}
// The region section need to be in sync with the map filter.
var inviewRegion = 'WW';
inviewRegion = 'WW';
lcd.$element.find( 'div.uls-lcd-region-section' ).each( function () {
var $lcdRegionSection = $( this ),
top = $lcdRegionSection.position().top,
@@ -296,7 +297,7 @@
}
} );
var inview = $.uls.data.regiongroups[inviewRegion];
inview = $.uls.data.regiongroups[inviewRegion];
$( '.regionselector' ).removeClass( 'active' );
$( '#uls-region-' + inview ).addClass( 'active' );
} );