Witam,
Mam taki kod:
  1. $("li.team-partner").click(function(){
  2. var number= $(this).index();
  3. window.location= "http://www.adres.pl";
  4. $("#content").hide();
  5. $("li.people-list-detail").eq(number).animate({height: "150px"},1000);
  6. $("li.people-desc-person").eq(number).show();
  7. })


Chciałbym, żeby wszystkie instrukcje po window.location wykonały się po wczytaniu nowego adresu. Próbowałem dodać document.ready(), ale nie działa. Jak mógłbym to zrobić? Pozdrawiam