Mam taki kod:
$("li.team-partner").click(function(){ var number= $(this).index(); window.location= "http://www.adres.pl"; $("#content").hide(); $("li.people-list-detail").eq(number).animate({height: "150px"},1000); $("li.people-desc-person").eq(number).show(); })
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