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:
- $(document).on('click','.editing_team',function(){
-
- var id_team = $(this).attr('data-id');
- var nome_team = $(this).attr('data-name');
- $(".counter_formazione").html('0');
-
- $.mobile.changePage ($("#editteam")),
- list_team_edit(id_team,nome_team)
-
- });
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