Browse Source

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

Sevajol Bastien 12 years ago
parent
commit
35eec9a0fe
1 changed files with 1 additions and 2 deletions
  1. 1 2
      web/bundles/muzichcore/js/muzich.js

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

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