Commit ece11de9 authored by hexeth's avatar hexeth Committed by Ozzie Isaacs

Fix publisher not formatting correct (#747)

parent f821580b
......@@ -215,11 +215,15 @@ if ( $( 'body.book' ).length > 0 ) {
.prepend( '<div><img class="bg-blur" src="' + cover + '"></div>' );
// Fix-up book detail headings
publisher = $( '.publishers p span' ).text().split( ': ' );
publisher = $( '.publishers p span' ).text().split( ':' );
$( '.publishers p span' ).remove();
$.each(publisher, function(i, val) {
$( '.publishers' ).append( '<span>' + publisher[i] + '</span>' );
});
$( '.publishers span:nth-child(2)' ).text(function() {
return $(this).text().replace(/^\s+/g, "");
});
published = $( '.book-meta p:contains("Publishing date")' )
.text().split(': ');
$( '.book-meta p:contains("Publishing date")' )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment