From af915cd3f8a92ffe5760350b2718b54009664a51 Mon Sep 17 00:00:00 2001
From: jpkanter <kanter@ub.uni-leipzig.de>
Date: Thu, 20 Jul 2023 10:50:31 +0200
Subject: [PATCH] refs #23356 [finc] reverting/adapting change from #21622 -
 light box focus after close was not set properbly because origin setter was
 deleted on template update

---
 themes/finc/js/lightbox.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/themes/finc/js/lightbox.js b/themes/finc/js/lightbox.js
index fb9ce55c1f8..febc29b3017 100644
--- a/themes/finc/js/lightbox.js
+++ b/themes/finc/js/lightbox.js
@@ -291,6 +291,8 @@ VuFind.register('lightbox', function Lightbox() {
       _lightboxTitle = $(this).data('lightbox-title') || false;
       _modalParams = $(this).data();
       VuFind.modal('show');
+      // Copied finc #17984
+      setOrigin($(this));
       ajax(obj);
       _currentUrl = this.href;
       return false;
-- 
GitLab