From c810f906cd20f82c229c4fb2e2ee6ae1476703bd Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Wed, 1 Sep 2021 19:16:15 +0000 Subject: [PATCH] Bug 28940: In spinelabel-print.tt call IntranetUserJS only once 1. In IntranetUser add some JS that will target spinelabel-print.tt, I used this: if ( $('#labels_spinelabel-print').length ) { $('#labels_spinelabel-print').append('
TEST
'); console.log('TEST'); } 2. Generate a quick spine label 3. Once you have entered a barcode the JS will go off 2x. With the jQuery added you will see 2 div's with the word 'TEST'. Look at the console and you will also see TEST console logged 2x. 4. Apply patch 5. Try seto 2 and 3 again, the JS should only be called once. Signed-off-by: Andrew Fuerste-Henry Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall (cherry picked from commit 41b8d6c1ffb4ea36dd6ccf5736bb6635dfa40bb9) Signed-off-by: Fridolin Somers --- .../intranet-tmpl/prog/en/modules/labels/spinelabel-print.tt | 1 - 1 file changed, 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/spinelabel-print.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/spinelabel-print.tt index 55fb795de0..0e5952010f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/labels/spinelabel-print.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/labels/spinelabel-print.tt @@ -35,7 +35,6 @@ [% INCLUDE 'slip-print.inc' #printThenClose %] [% END %]