hover on search results show cartel on map

This commit is contained in:
2018-09-13 12:20:36 +02:00
parent f5ae8b6532
commit 8b433b7792
2 changed files with 9 additions and 6 deletions
@@ -113,7 +113,10 @@
initAjaxLinks();
_compoPlayer.newCompo();
})
.on('search-results-loaded', initAjaxLinks)
.on('search-results-loaded', function(e){
initAjaxLinks();
initAudioLinksHover();
})
// do not close index or notice modale on entree click
.on('open_entree', function(e){
console.log('on_open_entree : e', e);
@@ -298,7 +301,7 @@
// TODO: unfortunatly on initFirstLoad there is no selector property
console.log('selector', state.selector);
$('a[selector="'+state.selector+'"]').addClass('is-active');
initAudioLinksInContent();
initAudioLinksHover();
}else{
if(typeof state.view_mode != 'undefined'){
$('a[viewmode="'+state.view_mode+'"][data-drupal-link-system-path="'+state.sys_path+'"]').addClass('is-active');
@@ -430,7 +433,7 @@
}
};
function initAudioLinksInContent(){
function initAudioLinksHover(){
_$row.find('a.audio-link')
.on('mouseover', function(event) {
event.preventDefault();