Fix region highlight when result is scrolled.

Regresssion from I48e2e167

Change-Id: Ibe7e49a21d5527ee56d466a68e19c051b0f6e39a
This commit is contained in:
Santhosh Thottingal
2012-08-20 10:12:05 +05:30
parent d67771fa01
commit 3f3608200a

View File

@@ -158,8 +158,9 @@
} ); } );
var inview = $.uls.data.regiongroups[inviewRegion]; var inview = $.uls.data.regiongroups[inviewRegion];
that.$element.find( 'div.uls-region' ).removeClass( 'active' ); // FIXME This is not a clean solution. It should get fixed with infinite scroll feature.
that.$element.find( 'div#uls-region-' + inview ).addClass( 'active' ); $( 'div.uls-region' ).removeClass( 'active' );
$( 'div#uls-region-' + inview ).addClass( 'active' );
} ); } );
} }