Sfoglia il codice sorgente

js fix: :last au lieu de :last-child . Ca ne fonctionnait plus dans un cas précis ...

Sevajol Bastien 12 anni fa
parent
commit
35eec9a0fe
1 ha cambiato i file con 1 aggiunte e 2 eliminazioni
  1. 1 2
      web/bundles/muzichcore/js/muzich.js

+ 1 - 2
web/bundles/muzichcore/js/muzich.js Vedi File

@@ -524,10 +524,9 @@ $(document).ready(function(){
524 524
     if (!$(this).hasClass('event_view'))
525 525
     {
526 526
       var link = $(this);
527
-      var last_element = $('ul.elements li.element:last-child');
527
+      var last_element = $('ul.elements li.element:last');
528 528
       var id_last = str_replace('element_', '', last_element.attr('id'));
529 529
       
530
-      
531 530
       var url = link.attr('href')+'/'+id_last;
532 531
       // Cas exeptionel si on se trouve sur la global_search
533 532
       if ($('div#results_search_form').length)