X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=ux%2FLightbox.js;h=46273de325a2fe412be5b8e7f9b64894a9d0ce11;hb=5f0c20d0c4e6eb4fb63ad64ac5dd3323de1b6c0c;hp=79a8f20b4ed953aba52d8841655ad40655dbd11b;hpb=943276999c26fff96fd89ec227acafbf1a03acde;p=roojs1 diff --git a/ux/Lightbox.js b/ux/Lightbox.js index 79a8f20b4e..46273de325 100644 --- a/ux/Lightbox.js +++ b/ux/Lightbox.js @@ -53,20 +53,13 @@ Roo.ux.Lightbox = function(cfg) { Roo.apply(Roo.ux.Lightbox.prototype, { // optiosn.. - /** - * @cfg fileLoadingImage {string} loading image - */ - fileLoadingImage: '/lightbox/images/loading.gif', - /** - * @cfg fileBottomNavCloseImage {string} close image - */ - fileBottomNavCloseImage: '/lightbox/images/closelabel.gif', + /** * @cfg overlayOpacity {number} controls transparency of shadow overlay */ overlayOpacity: 0.8, /** - * @cfg fileLoadingImage {boolean} toggles resizing animations + * @cfg animate {boolean} toggles resizing animations */ animate: true, /** @@ -93,7 +86,8 @@ Roo.apply(Roo.ux.Lightbox.prototype, /** - * List of images + * Array of images Roo.Elements (which should be images) + * properties can be */ imageArray: false, @@ -120,18 +114,18 @@ Roo.apply(Roo.ux.Lightbox.prototype, this.resizeSpeed = Math.min(this.resizeSpeed, 10); this.resizeSpeed = Math.max(this.resizeSpeed, 1); - this.resizeDuration = this.animate ? ((11 - this.resizeSpeed) * 0.15) : 0; - this.overlayDuration = this.animate ? 0.2 : 0; // shadow fade in/out duration + this.resizeDuration = this.animate ? ((11 - this.resizeSpeed) * 0.15) : 0; + this.overlayDuration = this.animate ? 0.2 : 0; // shadow fade in/out duration // When Lightbox starts it will resize itself from 250 by 250 to the current image dimension. // If animations are turned off, it will be hidden as to prevent a flicker of a // white 250 by 250 box. var size = (this.animate ? 250 : 1) + 'px'; var dh = Roo.DomHelper; - this.el = dh.append(document.body, { + this.el = Roo.DomHelper.append(document.body, { html: - // '
' + - '