|
@@ -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();
|