Support » Plugin: Slideshow Gallery » Fixed JS syntax error on thumbnail spacing

  • A bug exists where if the user sets thumbnail spacing to “0” pixels, the zero is passed as null and renders in client-side as “slideshow.spacing = ;” causing the entire slideshow to not display.

    I fixed this in /views/default/gallery.php on line 270 by changing:

    slideshow.spacing = <?php echo $options['thumbsspacing']; ?>;


    slideshow.spacing = <?php echo $options['thumbsspacing'] ? $options['thumbsspacing'] : '0'; ?>;

  • The topic ‘Fixed JS syntax error on thumbnail spacing’ is closed to new replies.