Created
May 9, 2016 09:38
-
-
Save SebastienGicquel/0712bfeb7ea6782c1190f302f13295fa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery.post( | |
ajaxurl, | |
{ | |
'action': 'load_acf_form_ajax', | |
'fields_key': $field_key, | |
'user_id': <?php echo $user_id_parameter; ?> | |
}, | |
function (response, status) { | |
//console.log(response); | |
$('#modal_content').html("Chargement..."); | |
$('#modal_content').html(response); | |
console.log('status : ' + status); | |
if (status === 'success') { | |
console.log('top !'); | |
acf.do_action('append', $('#modal_content')); | |
} | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment