Plugin Directory

Changeset 2149070


Ignore:
Timestamp:
09/01/2019 01:24:20 AM (7 years ago)
Author:
tvledesign
Message:
  • Fixed "Cannot read property 'add' of null" when multiple carousels in use on same page.
Location:
simple-logo-carousel
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • simple-logo-carousel/tags/1.2/readme.txt

    r2149046 r2149070  
    4747* Added ability to include logo title underneath logo in carousel options.
    4848* Added ability to use custom arrow images instead of default text option.
     49* Fixed "Cannot read property 'add' of null" when multiple carousels in use on same page.
    4950
    5051= 1.1 =
  • simple-logo-carousel/tags/1.2/simple-logo-carousel.php

    r2149046 r2149070  
    4444        $output .= '(function($) {';
    4545            // initialize our slick with our logo carousel
    46             $output .= '$(".slc-logos").slick({';
     46            $output .= '$(".slc-carousel-id-' . $id . '").slick({';
    4747                $output .= 'autoplay: ' . get_post_meta($id, 'slc_carousel_autoplay', true) . ',';
    4848                $output .= 'autoplaySpeed: ' . get_post_meta($id, 'slc_carousel_autoplayspeed', true) . ',';
     
    167167
    168168                // output our container for our logos
    169                 $output .= '<div class="slc-logos">';
     169                $output .= '<div class="slc-logos slc-carousel-id-' . $id . '">';
    170170
    171171                // while there are posts
  • simple-logo-carousel/trunk/readme.txt

    r2149047 r2149070  
    4747* Added ability to include logo title underneath logo in carousel options.
    4848* Added ability to use custom arrow images instead of default text option.
     49* Fixed "Cannot read property 'add' of null" when multiple carousels in use on same page.
    4950
    5051= 1.1 =
  • simple-logo-carousel/trunk/simple-logo-carousel.php

    r2149047 r2149070  
    4444        $output .= '(function($) {';
    4545            // initialize our slick with our logo carousel
    46             $output .= '$(".slc-logos").slick({';
     46            $output .= '$(".slc-carousel-id-' . $id . '").slick({';
    4747                $output .= 'autoplay: ' . get_post_meta($id, 'slc_carousel_autoplay', true) . ',';
    4848                $output .= 'autoplaySpeed: ' . get_post_meta($id, 'slc_carousel_autoplayspeed', true) . ',';
     
    167167
    168168                // output our container for our logos
    169                 $output .= '<div class="slc-logos">';
     169                $output .= '<div class="slc-logos slc-carousel-id-' . $id . '">';
    170170
    171171                // while there are posts
Note: See TracChangeset for help on using the changeset viewer.