From 99823662756601943cad5b01cf4505562fbd4639 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Wed, 31 May 2023 22:38:50 +0000 Subject: [PATCH] Bug 33876: Add class for styling To test: 1. Checkout and item that has a public and nonpublic note. 2. In the checkout table ( Title column ) notice the notes display. If you use the browser dev tools to inspect you'll notice a "-" outside of any HTML element. 3. Apply patch. 4. See the '-' is now inside of a html element with class of seperator. Signed-off-by: Sam Lau --- koha-tmpl/intranet-tmpl/prog/js/checkouts.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js index 534fec1cda..bf039dad20 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js +++ b/koha-tmpl/intranet-tmpl/prog/js/checkouts.js @@ -350,7 +350,7 @@ $(document).ready(function() { if ( flatpickr.formatDate( new Date(oObj.issuedate), "Y-m-d" ) == ymd ){ span_class = "circ-hlt"; } - title += " - " + oObj.itemnotes.escapeHtml() + ""; + title += " - " + oObj.itemnotes.escapeHtml() + ""; } if ( oObj.itemnotes_nonpublic ) { @@ -358,7 +358,7 @@ $(document).ready(function() { if ( flatpickr.formatDate( new Date(oObj.issuedate), "Y-m-d" ) == ymd ){ span_class = "circ-hlt"; } - title += " - " + oObj.itemnotes_nonpublic.escapeHtml() + ""; + title += " - " + oObj.itemnotes_nonpublic.escapeHtml() + ""; } var onsite_checkout = ''; @@ -367,7 +367,7 @@ $(document).ready(function() { } if ( oObj.recalled == 1 ) { - title += " - " + __("This item has been recalled and the due date updated") + "."; + title += " - " + __("This item has been recalled and the due date updated") + "."; } title += " " -- 2.30.2