From 8f708cbfce131fb380409cef28b14f6ed6a27d77 Mon Sep 17 00:00:00 2001 From: David Cook Date: Tue, 29 Oct 2024 23:08:40 +0000 Subject: [PATCH] Bug 38293: Fix setting branch-level JS and CSS Test plan: 1. Apply the patch 2. Go to http://localhost:8081/cgi-bin/koha/admin/branches.pl? op=add_form&branchcode=CPL 3. Scroll to bottom of the page and click "Edit" then "Collapse" next to Specific OPAC JS and Specific OPAC CSS --- koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt index 35c27cac57..4c6d22e12c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/branches.tt @@ -833,7 +833,7 @@ $( ".expand-textarea" ).on("click", function(e){ e.preventDefault(); $(this).hide(); - var target = $(this).data("target"); + var target = $(this).data("bs-target"); var syntax = $(this).data("syntax"); $("#collapse_" + target ).show(); if( syntax ){ @@ -858,7 +858,7 @@ $( ".collapse-textarea" ).on("click", function(e){ e.preventDefault(); $(this).hide(); - var target = $(this).data("target"); + var target = $(this).data("bs-target"); var syntax = $(this).data("syntax"); $("#expand_" + target ).show(); if( syntax ){ -- 2.39.2