Changeset 110240 in spip-zone


Ignore:
Timestamp:
May 13, 2018, 7:06:12 AM (19 months ago)
Author:
labergerie@…
Message:

correction boucler sur les ≠ swipers qui peuvent être présent + inc version

Location:
_plugins_/swiper/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/swiper/trunk/paquet.xml

    r108101 r110240  
    22        prefix="swiper"
    33        categorie="multimedia"
    4         version="1.0.2"
     4        version="1.0.3"
    55        etat="test"
    66        compatibilite="[3.2.0;3.2.*]"
  • _plugins_/swiper/trunk/swiper_pipelines.php

    r108101 r110240  
    1919        $flux = '<script type="text/javascript">';
    2020        $flux .= '      var swiper_options = '.$c["swiper_options"];
    21         $flux .= '      , mySwipers;';
     21        $flux .= '      , mySwipers={};';
    2222        $flux .= '      $(document).ready(function(){ ';
    2323        $flux .= '    var target = swiper_options.containerModifierClass || ".swiper-container";';
    2424        $flux .= '              target = $(target);';
    25         $flux .= '              if (target.length) {mySwipers = new Swiper($(target)[0], swiper_options);}';
     25        $flux .= '              if (target.length) {';
     26        $flux .= '                      target.each(function(i,el) { mySwipers[i] = new Swiper($(el), swiper_options); })';
     27        $flux .= '              }';
    2628        $flux .= '      })';
    2729        $flux .= '</script>';
Note: See TracChangeset for help on using the changeset viewer.