From: Alan Knowles Date: Wed, 29 Dec 2010 07:45:45 +0000 (+0800) Subject: ux/Lightbox.js X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=9eed52e9ebe3705dcfad691ec0eba0bb8adbd2cc;p=roojs1 ux/Lightbox.js --- diff --git a/ux/Lightbox.js b/ux/Lightbox.js index 4f3b64e526..50c321d59c 100644 --- a/ux/Lightbox.js +++ b/ux/Lightbox.js @@ -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.lightbox = Roo.DomHelper.append(document.body, { + this.el = Roo.DomHelper.append(document.body, { html: // '
' + '
' + @@ -172,14 +172,14 @@ Roo.apply(Roo.ux.Lightbox.prototype, function(id){ var vid = id.replace(/\-/g,''); Roo.log(id); - th[vid] = th.lightbox.child('.'+id); + th[vid] = th.el.child('.'+id); if (!th[vid]) { return; } th[vid].setVisibilityMode(Roo.Element.DISPLAY); }); - + this.lightbox = this.roolightbox; //Roo.get('overlay').hide(); //Roo.get('overlay').on('click', this.end, this);