From 7032f311d573e6b80717fb1eaea8efe815489edf Mon Sep 17 00:00:00 2001 From: hexeth <7627137+hexeth@users.noreply.github.com> Date: Fri, 11 Jan 2019 10:54:21 -0800 Subject: [PATCH] Update caliBlur.js --- cps/static/js/caliBlur.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/cps/static/js/caliBlur.js b/cps/static/js/caliBlur.js index 45dd4491..451a393f 100644 --- a/cps/static/js/caliBlur.js +++ b/cps/static/js/caliBlur.js @@ -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' );