How i can fore a function after $.mobile.changePage ?

How i can fore a function after $.mobile.changePage ?

Hi i have a button in my page with class="editing_team" . When i click on this button i change page via script with $.mobile.changePage and fire a function that populate the page. This is the script:

  1. $(document).on('click','.editing_team',function(){    
  2.   
  3. var id_team = $(this).attr('data-id');
  4. var nome_team = $(this).attr('data-name'); 

  5. $(".counter_formazione").html('0');
  6.   
  7. $.mobile.changePage ($("#editteam")),
  8. list_team_edit(id_team,nome_team)
  9. });

The script work good except for a issue. Apparently, transition and list_team() fires contemporary so the transition is strange. I would to fire second function (  list_team() ) when the transition is compleate, but i don't know how.

Someone can help me ? Thanks