Advertisement
Guest User

Untitled

a guest
May 27th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. function legendHeight() {
  2. $result = $('.search-result');
  3. $resultHeight = $result.height();
  4. if($result.find('.legend-lead').length != 0) {
  5. $(this).children('.legend').height($resultHeight);
  6. }
  7. };
  8.  
  9.  
  10. $(window).load(function () {
  11. equalheight('.search-result');
  12. legendHeight();
  13. });
  14. $(window).resize(function () {
  15. equalheight('.search-result');
  16. legendHeight();
  17. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement