1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-12-01 05:49:58 +00:00

Fix publisher not formatting correct (#747)

This commit is contained in:
hexeth 2019-01-04 11:39:11 -08:00 committed by Ozzie Isaacs
parent f821580b50
commit ece11de942

View File

@ -220,6 +220,10 @@ if ( $( 'body.book' ).length > 0 ) {
$.each(publisher, function(i, val) { $.each(publisher, function(i, val) {
$( '.publishers' ).append( '<span>' + publisher[i] + '</span>' ); $( '.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")' ) published = $( '.book-meta p:contains("Publishing date")' )
.text().split(': '); .text().split(': ');
$( '.book-meta p:contains("Publishing date")' ) $( '.book-meta p:contains("Publishing date")' )