From b9ae3ea901885492bd19b8f90f5a7250dfd8019b 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 --- src/jquery.uls.lcd.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/jquery.uls.lcd.js b/src/jquery.uls.lcd.js index 43d6bdd..813e07b 100644 --- a/src/jquery.uls.lcd.js +++ b/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' ); } ); }