Просмотр исходного кода

hover on search results show cartel on map

Bachir Soussi Chiadmi 6 лет назад
Родитель
Сommit
8b433b7792

Разница между файлами не показана из-за своего большого размера
+ 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();
           initAjaxLinks();
           _compoPlayer.newCompo();
           _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
         // do not close index or notice modale on entree click
         .on('open_entree', function(e){
         .on('open_entree', function(e){
           console.log('on_open_entree : e', e);
           console.log('on_open_entree : e', e);
@@ -298,7 +301,7 @@
         // TODO:  unfortunatly on initFirstLoad there is no selector property
         // TODO:  unfortunatly on initFirstLoad there is no selector property
         console.log('selector', state.selector);
         console.log('selector', state.selector);
         $('a[selector="'+state.selector+'"]').addClass('is-active');
         $('a[selector="'+state.selector+'"]').addClass('is-active');
-        initAudioLinksInContent();
+        initAudioLinksHover();
       }else{
       }else{
         if(typeof state.view_mode != 'undefined'){
         if(typeof state.view_mode != 'undefined'){
           $('a[viewmode="'+state.view_mode+'"][data-drupal-link-system-path="'+state.sys_path+'"]').addClass('is-active');
           $('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')
       _$row.find('a.audio-link')
         .on('mouseover', function(event) {
         .on('mouseover', function(event) {
           event.preventDefault();
           event.preventDefault();

Некоторые файлы не были показаны из-за большого количества измененных файлов