Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Ouvre le premier lien enfant de l'élément cible
- // Reproduit le comportement des navigateurs (ctrl ou cmd ou middleclick = nouvel onglet)
- $('.line-click').live('click', function(e){
- e.stopPropagation();
- href = $(this).children('a:first').attr('href');
- if (e.ctrlKey || e.metaKey || e.which == 2) {
- window.open(href);
- } else {
- window.location = href;
- }
- }).css('cursor', 'pointer');
Add Comment
Please, Sign In to add comment