Advertisement
Guest User

Untitled

a guest
Jul 28th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if ( window.addEventListener ) {
  2.     window.addEventListener('popstate', function( e ) {
  3.         /*if($(".i-wrap").is(":visible")) {
  4.             e.preventDefault();
  5.             $(".i-wrap .close-item").click();
  6.             return false;
  7.         }*/
  8.         var loc = e.location || document.location;
  9.         uploadContent(loc, false);
  10.     }, false);
  11. } else if ( window.attachEvent ) {
  12.     window.attachEvent('onpopstate', function( e ) {
  13.         var loc = e.location || document.location;
  14.         uploadContent(loc, false);
  15.     });
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement