1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-06-26 07:03:17 +00:00

Update caliBlur.js

This commit is contained in:
hexeth 2019-01-11 10:54:21 -08:00 committed by GitHub
parent 66fcd71685
commit 7032f311d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -385,18 +385,6 @@ $(document).mouseup(function (e) {
// Split path name to array and remove blanks
url = window.location.pathname
.split( "/" ).filter( function(v){return v!==''} );
// Add classes to some body elements that don't have it
if ( jQuery.inArray( 'epub', url ) != -1 ) {
$( 'body' ).addClass( url[3] );
} else {
$( 'body' ).addClass( url[1] );
}
if ( $( 'body.shelf' ).length > 0 ) {
$( 'a[href*= "'+url[1]+"/"+url[2]+'"]' )
.parent()
.addClass( 'active' );
}
// Move create shelf
$( '#nav_createshelf' ).prependTo( '.your-shelves' );