From 83aef4172ede0148ffbad943f85ae049cea1ccf9 Mon Sep 17 00:00:00 2001 From: Franzz Date: Tue, 13 Sep 2022 18:12:01 +0200 Subject: [PATCH] Fix lightbox album scope --- inc/Spot.php | 2 +- script/lightbox.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/inc/Spot.php b/inc/Spot.php index f0bd7ee..b163890 100755 --- a/inc/Spot.php +++ b/inc/Spot.php @@ -115,7 +115,7 @@ class Spot extends Main 'pattern' => "VARCHAR(200) NOT NULL", 'posted_on' => "TIMESTAMP DEFAULT 0", 'ref_feed_id' => "VARCHAR(40)", - 'ref_msg_id' => "INT", + 'ref_msg_id' => "VARCHAR(15)", 'ref_spot_id' => "VARCHAR(10)", 'rotate' => "SMALLINT", 'site_time' => "TIMESTAMP DEFAULT 0", //DEFAULT 0 removes auto-set to current time diff --git a/script/lightbox.js b/script/lightbox.js index 1975946..81651d3 100644 --- a/script/lightbox.js +++ b/script/lightbox.js @@ -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'),