ux/Lightbox.js
authorAlan Knowles <alan@akbkhome.com>
Wed, 29 Dec 2010 07:44:43 +0000 (15:44 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 29 Dec 2010 07:44:43 +0000 (15:44 +0800)
ux/Lightbox.js

index 428cd36..c97a0b6 100644 (file)
@@ -128,7 +128,7 @@ Roo.apply(Roo.ux.Lightbox.prototype,
         // white 250 by 250 box.
         var size = (this.animate ? 250 : 1) + 'px';
         var dh = Roo.DomHelper;
-        this.el = Roo.DomHelper.append(document.body, {
+        this.lightbox = Roo.DomHelper.append(document.body, {
                 html: 
                //   '<div id="overlay"></div>' +
                   '<div class="roo-lightbox">' +
@@ -172,7 +172,7 @@ Roo.apply(Roo.ux.Lightbox.prototype,
             function(id){ 
                 var vid = id.replace(/\-/g,'');
                 Roo.log(id);
-                th[vid] = th.el.child('.'+id); 
+                th[vid] = th.lightbox.child('.'+id); 
                 if (!th[vid]) {
                     return;
                 }