I would like to use the whole tease as a link to the node. I could google (and adapted) the following code but still not working.
following line: scripts[] = js/new_teaser.js is added in the ".info" file of my theme (Business) and this code to the "new_teaser.js":
$(document).ready(function(){
$(".node-teaser").click(function(){
window.location=$(this).find("a").attr("href"); return false;
});
});
the class of my teaser is ".node-teaser" and the "NoScript" addin of my browser is switched off. I assumes that the problem is in the JS code.
Drupal 7, theme Business
Could someone help me please?
EDIT: as far as I can see, there is no link to the new_teaser.js file in the source code of the page... (even if the file is in the js/ folder and in the theme .info file