Skip to content
Snippets Groups Projects
Commit 4bba1a15 authored by gloas's avatar gloas
Browse files

Skin: persitence du over sur menu lorqu'on est dans le sous menu

parent a99028a3
Branches
Tags
No related merge requests found
......@@ -94,8 +94,11 @@ var initializeImgHover = function() {
images.each(function(index, element) {
var image = $(element);
image.attr('data-out', image.attr('src'));
image.add(image.closest('a')).hover(function(){image.attr('src', image.data('hover'));},
function(){image.attr('src', image.data('out'));});
if(image.parents('.menu').length==0)
image.parent().hover(function(){image.attr('src', image.data('hover'));},
function(){image.attr('src', image.data('out'));});
image.parents('.menu').hover(function(){image.attr('src', image.data('hover'));},
function(){image.attr('src', image.data('out'));});
});
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment