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 <samalau@gmail.com> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> (cherry picked from commit6091a938c1
) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> (cherry picked from commit71b92c80c8
) Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
This commit is contained in:
parent
bcd89d89b1
commit
bdbe46c3fd
1 changed files with 3 additions and 3 deletions
|
@ -350,7 +350,7 @@ $(document).ready(function() {
|
|||
if ( flatpickr.formatDate( new Date(oObj.issuedate), "Y-m-d" ) == ymd ){
|
||||
span_class = "circ-hlt";
|
||||
}
|
||||
title += " - <span class='" + span_class + " item-note-public'>" + oObj.itemnotes.escapeHtml() + "</span>";
|
||||
title += "<span class='divider-dash'> - </span><span class='" + span_class + " item-note-public'>" + oObj.itemnotes.escapeHtml() + "</span>";
|
||||
}
|
||||
|
||||
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 += " - <span class='" + span_class + " item-note-nonpublic'>" + oObj.itemnotes_nonpublic.escapeHtml() + "</span>";
|
||||
title += "<span class='divider-dash'> - </span><span class='" + span_class + " item-note-nonpublic'>" + oObj.itemnotes_nonpublic.escapeHtml() + "</span>";
|
||||
}
|
||||
|
||||
var onsite_checkout = '';
|
||||
|
@ -367,7 +367,7 @@ $(document).ready(function() {
|
|||
}
|
||||
|
||||
if ( oObj.recalled == 1 ) {
|
||||
title += " - <span class='circ-hlt item-recalled'>" + __("This item has been recalled and the due date updated") + ".</span>";
|
||||
title += "<span class='divider-dash'> - </span><span class='circ-hlt item-recalled'>" + __("This item has been recalled and the due date updated") + ".</span>";
|
||||
}
|
||||
|
||||
title += " "
|
||||
|
|
Loading…
Reference in a new issue