best way to implement an overlay with pjax
问题 Currently I'm using pjax to load in a fragment and overlay the main page of my site page. I am then changing the body class with jquery to allow a few styling changes. This is fine but the browser back button doesn't work as it should due the body class change being triggered on click of the pjax trigger and therefor the body maintains the class of the overlay. The effect I'm looking for is quite similar to this site when you click on a project. http://www.watsonnyc.com/ Obviously this isn't