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

index ccbd785..4a31ec4 100644 (file)
@@ -24,12 +24,17 @@ Roo.namespace('Roo.ux');
 Roo.ux.Slideshow = function(cfg ) 
 {
     Roo.apply(this, cfg);
-    if ( this.slides ) {
+    if ( !this.slides) {
+        
         this.numOfImages       = this.slides.length;
         if ( !this.numOfImages ) {
-            alert('No slides?');
+         //   alert('No slides?');
         }
     }
+    if (this.slides.length == 1) {
+            
+        }
+    
     this.playButton = Roo.get(this.playButton);
     this.pauseButton = Roo.get(this.pauseButton);
     this.counter = Roo.get(this.counter);