From fe37fe45c1ab839e3f999dc08107090abb9f1e34 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Thu, 19 Oct 2023 04:15:08 +0000 Subject: [PATCH] Bug 33478: Better selector for body of notices suggest #slip, #receipt, and pre instead of body for css --- koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt index fcab0ecc424..82dfca74115 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/letter.tt @@ -701,8 +701,8 @@ $(document).ready(function(){ $("#headings").click(function(){ $("#style").val(function(i, text) { - return text + '\nbody, #slip h1, #slip h2, #slip h3, #slip h4, #slip h5, #slip h6,\n' + - '#receipt h1, #receipt h2, #receipt h3, #receipt h4, #receipt h5, #receipt h6 {\n' + + return text + 'pre, #slip, #slip h1, #slip h2, #slip h3, #slip h4, #slip h5, #slip h6,\n' + + '#receipt, #receipt h1, #receipt h2, #receipt h3, #receipt h4, #receipt h5, #receipt h6 {\n' + '// insert CSS here\n' + '}'; }); @@ -716,8 +716,8 @@ }); $("#text").click(function(){ $("#style").val(function(i, text) { - return text + '\nbody, #slip h1, #slip h2, #slip h3, #slip h4, #slip h5, #slip h6,\n' + - '#receipt h1, #receipt h2, #receipt h3, #receipt h4, #receipt h5, #receipt h6,\n' + + return text + 'pre, #slip, #slip h1, #slip h2, #slip h3, #slip h4, #slip h5, #slip h6,\n' + + '#receipt, #receipt h1, #receipt h2, #receipt h3, #receipt h4, #receipt h5, #receipt h6,\n' + 'table, th, td, th:last-child, td:last-child {\n' + '// insert CSS here\n' + '}'; -- 2.30.2