ux/Slideshow.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 22 Jul 2010 06:48:45 +0000 (14:48 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 22 Jul 2010 06:48:45 +0000 (14:48 +0800)
ux/Slideshow.js

index 681e137..0d0af70 100644 (file)
@@ -174,8 +174,9 @@ Roo.apply(Roo.ux.Slideshow.prototype, {
         }
                var textIn = this.iImageId+1 + ' of ' + this.numOfImages;
                this.counter.update( textIn );
-               if ( this.caption) && ( oNewCaption = $(this.slides[this.iImageId]).down('.image-caption') ) ) {
-                       $(this.caption).innerHTML = oNewCaption.innerHTML;
+        var oNewCaption = this.slides[this.iImageId]).select('.image-caption', true)
+               if ( this.caption &&  oNewCaption.length ) {
+                       this.caption.update( oNewCaption[0].innerHTML;
                }
        }
 }