Advertisement
Juc1

jQuery

Dec 30th, 2013
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.37 KB | None | 0 0
  1. (function ($) {
  2.   Drupal.behaviors.test = {
  3.     attach: function (context, settings) {
  4.       $('.clickable-row .views-row').each( function() {
  5.         if ($(this).find('a').length) {
  6.           $(this).click(function() {
  7.             window.location=$(this).find('a').attr('href');
  8.             return false;
  9.           });
  10.         }
  11.       });
  12.     }
  13.   };
  14. })(jQuery);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement