projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3920925
)
ux/Lightbox.js
author
Alan Knowles
<alan@roojs.com>
Wed, 10 Mar 2021 08:59:44 +0000
(16:59 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 10 Mar 2021 08:59:44 +0000
(16:59 +0800)
ux/Lightbox.js
patch
|
blob
|
history
diff --git
a/ux/Lightbox.js
b/ux/Lightbox.js
index
456aeb5
..
0d7b3f6
100644
(file)
--- a/
ux/Lightbox.js
+++ b/
ux/Lightbox.js
@@
-370,7
+370,7
@@
Roo.apply(Roo.ux.Lightbox.prototype,
});
//this.imageArray = [];
- var imageNum =
0
;
+ var imageNum =
-1
;
if (imageLink) {
imageLink = Roo.get(imageLink);
@@
-381,6
+381,11
@@
Roo.apply(Roo.ux.Lightbox.prototype,
imageNum = i;
}
});
+ if (imageNum < 0) {
+
+ this.imageArray.push(imageLink);
+ imageNum = this.imageArray.length-1;
+ }
}
// let's assume the constructor sorts out the list of images..