From bdbe46c3fdafc88552e00c19ffe436b6c8b0963a 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 Signed-off-by: Marcel de Rooy Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 6091a938c1c148cbeab6ff27f5261c6fe64d1463) Signed-off-by: Fridolin Somers (cherry picked from commit 71b92c80c89c05311db4a8e2452632f114ef75c0) Signed-off-by: Matt Blenkinsop --- 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 305ff0d151..4947116f0d 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.20.1