Index: views_slideshow/views_slideshow.theme.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/views_slideshow/Attic/views_slideshow.theme.inc,v retrieving revision 1.1 diff -u -p -r1.1 views_slideshow.theme.inc --- views_slideshow/views_slideshow.theme.inc 30 Sep 2008 20:10:22 -0000 1.1 +++ views_slideshow/views_slideshow.theme.inc 19 Nov 2008 22:35:32 -0000 @@ -24,17 +24,19 @@ $(document).ready(function() { // These are the divs containing the elements to be displayed in the main div in rotation or mouseover. slideshow_data["$id"] = new views_slideshow_data($num_divs, {$options['timer_delay']}, {$options['sort']}, $fade, "{$options['fade_speed']}", {$options['fade_value']}); - // This turns on the timer. - views_slideshow_timer("$id", true); - - // This sets up the mouseover & mouseout to pause on the main element. - $("#views_slideshow_main_$id").$hover( - function() { - views_slideshow_pause("$id"); - }, - function() { - views_slideshow_resume("$id"); - }); + // This turns on the timer if there is more than one item. + if ($num_divs > 1) { + views_slideshow_timer("$id", true); + + // This sets up the mouseover & mouseout to pause on the main element. + $("#views_slideshow_main_$id").$hover( + function() { + views_slideshow_pause("$id"); + }, + function() { + views_slideshow_resume("$id"); + }); + } }); JS; return $js;