projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfbc4bf
)
ux/Lightbox.js
author
Alan Knowles
<alan@akbkhome.com>
Wed, 29 Dec 2010 06:43:37 +0000
(14:43 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Wed, 29 Dec 2010 06:43:37 +0000
(14:43 +0800)
ux/Lightbox.js
patch
|
blob
|
history
diff --git
a/ux/Lightbox.js
b/ux/Lightbox.js
index
70ec9a9
..
539cb91
100644
(file)
--- a/
ux/Lightbox.js
+++ b/
ux/Lightbox.js
@@
-45,6
+45,7
@@
Roo.namespace('Roo.ux');
Roo.ux.Lightbox = function(cfg) {
+ this.imageArray = [];
Roo.apply(this,cfg);
this.initialize();
}
@@
-224,7
+225,9
@@
Roo.apply(Roo.ux.Lightbox.prototype,
*/
updateImageList: function() {
this.updateImageList = Roo.emptyFn;
-
+ if (this.imageArray.length) {
+ return;
+ }
Roo.each(Roo.DomQuery.select('a[rel^=lightbox]'), function(e) {
this.imageArray.push(Roo.get(e));
Roo.get(e).on('click', (function(event, tg, tga,tgb) {