Kaynağa Gözat

hover on search results show cartel on map

Bachir Soussi Chiadmi 6 yıl önce
ebeveyn
işleme
8b433b7792

Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
sites/all/themes/custom/edlptheme/assets/dist/scripts/main.min.js


+ 6 - 3
sites/all/themes/custom/edlptheme/assets/scripts/main.js

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

Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor