From 5bb8e376574c6aacb42a051dcdd6875b3dbf583a Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Wed, 9 Feb 2022 15:16:32 -1000 Subject: [PATCH] Bug 11873: (QA follow-up) Add missing TT filters Signed-off-by: Fridolin Somers --- koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt | 2 +- .../opac-tmpl/bootstrap/en/modules/opac-auth-MARCdetail.tt | 2 +- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth-detail.tt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt index f55176b935..fd98a45849 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt @@ -153,7 +153,7 @@ "plugins" : [ "types" ] }).on('ready.jstree', function(){ $(this).jstree('open_all'); - $("#hier"+[% authid %]+"_anchor").on("click", + $("#hier"+[% authid | html %]+"_anchor").on("click", function(e){e.preventDefault(); return false;} ).css("text-decoration", "none").css("color", "#333"); $(".currentauth").css("text-decoration", "none").css("color", "#333"); diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth-MARCdetail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth-MARCdetail.tt index 724f8c7d9a..f100275403 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth-MARCdetail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth-MARCdetail.tt @@ -93,7 +93,7 @@ "plugins" : [ "types" ] }).on('ready.jstree', function(){ $(this).jstree('open_all') - $("#hier"+[% authid %]+"_anchor").on("click", + $("#hier"+[% authid | html %]+"_anchor").on("click", function(e){e.preventDefault(); return false;} ).css("text-decoration", "none").css("color", "#333"); $(".currentauth").css("text-decoration", "none").css("color", "#333"); diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth-detail.tt index 0f14a2c151..652736a841 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth-detail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth-detail.tt @@ -188,7 +188,7 @@ "plugins" : [ "types" ] }).on('ready.jstree', function(){ $(this).jstree('open_all'); - $("#hier"+[% original_authid %]+"_anchor").on("click", + $("#hier"+[% original_authid | html %]+"_anchor").on("click", function(e){e.preventDefault(); return false;} ).css("text-decoration", "none").css("color", "#333"); $(".currentauth").css("text-decoration", "none").css("color", "#333"); -- 2.39.5