From 3f3608200a7d1276441a9b4d5e9f3cce82ba81bc Mon Sep 17 00:00:00 2001 From: Santhosh Thottingal Date: Mon, 20 Aug 2012 10:12:05 +0530 Subject: [PATCH] Fix region highlight when result is scrolled. Regresssion from I48e2e167 Change-Id: Ibe7e49a21d5527ee56d466a68e19c051b0f6e39a --- lib/jquery.uls/src/jquery.uls.lcd.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/jquery.uls/src/jquery.uls.lcd.js b/lib/jquery.uls/src/jquery.uls.lcd.js index 43d6bddb..813e07b6 100644 --- a/lib/jquery.uls/src/jquery.uls.lcd.js +++ b/lib/jquery.uls/src/jquery.uls.lcd.js @@ -158,8 +158,9 @@ } ); var inview = $.uls.data.regiongroups[inviewRegion]; - that.$element.find( 'div.uls-region' ).removeClass( 'active' ); - that.$element.find( 'div#uls-region-' + inview ).addClass( 'active' ); + // FIXME This is not a clean solution. It should get fixed with infinite scroll feature. + $( 'div.uls-region' ).removeClass( 'active' ); + $( 'div#uls-region-' + inview ).addClass( 'active' ); } ); }