Fix lightbox album scope

This commit is contained in:
2022-09-13 18:12:01 +02:00
parent 86af6194a6
commit 69ac7464d3
2 changed files with 2 additions and 3 deletions

View File

@@ -115,7 +115,7 @@ class Spot extends Main
'pattern' => "VARCHAR(200) NOT NULL", 'pattern' => "VARCHAR(200) NOT NULL",
'posted_on' => "TIMESTAMP DEFAULT 0", 'posted_on' => "TIMESTAMP DEFAULT 0",
'ref_feed_id' => "VARCHAR(40)", 'ref_feed_id' => "VARCHAR(40)",
'ref_msg_id' => "INT", 'ref_msg_id' => "VARCHAR(15)",
'ref_spot_id' => "VARCHAR(10)", 'ref_spot_id' => "VARCHAR(10)",
'rotate' => "SMALLINT", 'rotate' => "SMALLINT",
'site_time' => "TIMESTAMP DEFAULT 0", //DEFAULT 0 removes auto-set to current time 'site_time' => "TIMESTAMP DEFAULT 0", //DEFAULT 0 removes auto-set to current time

View File

@@ -326,7 +326,7 @@
} }
//ADDED-END //ADDED-END
//this.album = []; this.album = [];
var imageNumber = 0; var imageNumber = 0;
// Support both data-lightbox attribute and rel attribute implementations // Support both data-lightbox attribute and rel attribute implementations
@@ -376,7 +376,6 @@
}; };
Lightbox.prototype.addToAlbum = function($link) { Lightbox.prototype.addToAlbum = function($link) {
if(!this.album) this.album = [];
this.album.push({ this.album.push({
alt: $link.attr('data-alt'), alt: $link.attr('data-alt'),
link: $link.attr('href'), link: $link.attr('href'),