Fix region highlight when result is scrolled.
Regresssion from I48e2e167 Change-Id: Ibe7e49a21d5527ee56d466a68e19c051b0f6e39a
This commit is contained in:
@@ -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' );
|
||||||
} );
|
} );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user