Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function legendHeight() {
- $result = $('.search-result');
- $resultHeight = $result.height();
- if($result.find('.legend-lead').length != 0) {
- $(this).children('.legend').height($resultHeight);
- }
- };
- $(window).load(function () {
- equalheight('.search-result');
- legendHeight();
- });
- $(window).resize(function () {
- equalheight('.search-result');
- legendHeight();
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement