Fix lightbox album scope
This commit is contained in:
1 parent
86af6194a6
commit
69ac7464d3
2 files changed
+2
-3
No files matched your search
+1
-2
@@ -326,7 +326,7 @@
|
||||
}
|
||||
//ADDED-END
|
||||
|
||||
//this.album = [];
|
||||
this.album = [];
|
||||
var imageNumber = 0;
|
||||
|
||||
// Support both data-lightbox attribute and rel attribute implementations
|
||||
@@ -376,7 +376,6 @@
|
||||
};
|
||||
|
||||
Lightbox.prototype.addToAlbum = function($link) {
|
||||
if(!this.album) this.album = [];
|
||||
this.album.push({
|
||||
alt: $link.attr('data-alt'),
|
||||
link: $link.attr('href'),
|
||||
|
||||
Reference in new issue
Block a user