From 1fc9ab219a1d73382e5adaf31bff4c4fa206f26e Mon Sep 17 00:00:00 2001
From: Chris Hallberg <crhallberg@gmail.com>
Date: Wed, 19 Feb 2014 15:54:26 -0500
Subject: [PATCH] Brought place hold lightboxes out of the dark ages of the
 callback stack. Bootstrap.

---
 themes/bootstrap/js/lightbox.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/themes/bootstrap/js/lightbox.js b/themes/bootstrap/js/lightbox.js
index 38b50efd347..fc8d5f631e9 100644
--- a/themes/bootstrap/js/lightbox.js
+++ b/themes/bootstrap/js/lightbox.js
@@ -482,9 +482,10 @@ $(document).ready(function() {
   $('.placehold').click(function() {
     var params = deparam($(this).attr('href'));
     params.hashKey = params.hashKey.split('#')[0]; // Remove #tabnav
-    return getLightbox('Record', 'Hold', params, {}, function(op) {
+    addLightboxOnClose(function(op) {
       document.location.href = path+'/MyResearch/Holds';
-    }, false);
+    });
+    return getLightbox('Record', 'Hold', params, {});
   });
   // Save record links
   $('.save-record').click(function() {
-- 
GitLab