projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76e0cf4
)
ux/Slideshow.js
author
Alan Knowles
<alan@akbkhome.com>
Thu, 22 Jul 2010 07:03:27 +0000
(15:03 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 22 Jul 2010 07:03:27 +0000
(15:03 +0800)
ux/Slideshow.js
patch
|
blob
|
history
diff --git
a/ux/Slideshow.js
b/ux/Slideshow.js
index
ccbd785
..
4a31ec4
100644
(file)
--- a/
ux/Slideshow.js
+++ b/
ux/Slideshow.js
@@
-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);