From 985c32398fd3d450337a3f986b071b6993c21a93 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 11 Feb 2022 12:36:21 +0000 Subject: [PATCH] Bug 29960: (follow-up) Include enquire.js in print slip template This patch adds enquire.js to the print slip template in order to prevent a JS error. Also removed is a line from global.js which was added in the previous patch and which was an unwanted change. Signed-off-by: David Nind Signed-off-by: Katrin Fischer Signed-off-by: Fridolin Somers --- koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/printslip.tt | 1 + koha-tmpl/opac-tmpl/bootstrap/js/global.js | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/printslip.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/printslip.tt index 41baa6acb5..8f293f0a82 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/printslip.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/printslip.tt @@ -18,6 +18,7 @@ [% Asset.js("lib/jquery/jquery-3.4.1.min.js") | $raw %] [% Asset.js("lib/jquery/jquery-migrate-3.1.0.min.js") | $raw %] [% Asset.js("lib/fontfaceobserver.min.js") | $raw %] +[% Asset.js("lib/enquire.min.js") | $raw %] [% Asset.js("js/global.js") | $raw %] [% INCLUDE 'slip-print.inc' #printThenClose %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/js/global.js b/koha-tmpl/opac-tmpl/bootstrap/js/global.js index 171dfd2bd0..1d46a3f271 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/js/global.js +++ b/koha-tmpl/opac-tmpl/bootstrap/js/global.js @@ -230,5 +230,3 @@ $(document).ready(function(){ } }); }); - -$.fn.modal.Constructor.prototype.enforceFocus = function () {}; -- 2.39.5