ux/Slideshow.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 22 Jul 2010 07:02:22 +0000 (15:02 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 22 Jul 2010 07:02:22 +0000 (15:02 +0800)
ux/Slideshow.js

index 2ef2826..0d100f5 100644 (file)
@@ -116,6 +116,9 @@ Roo.apply(Roo.ux.Slideshow.prototype, {
                
                this.textIn = this.iImageId+1 + ' of ' + this.numOfImages;
                this.updatecounter();
+        if (this.images.length == 1) {
+            return;
+           }
         if (this.running) {
             this.play.defer(this.wait, this);
         }