mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
- wp native ajax fix
This commit is contained in:
@@ -72,10 +72,16 @@ if ( ! class_exists( 'um\admin\core\Admin_Menu' ) ) {
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery( 'a.um-admin-rating-link' ).click(function() {
|
||||
jQuery.post(
|
||||
'<?php echo UM()->get_ajax_route( get_class( $this ), 'ultimatemember_rated' ) ?>',
|
||||
{}
|
||||
);
|
||||
jQuery.ajax({
|
||||
url: wp.ajax.settings.url,
|
||||
type: 'post',
|
||||
data: {
|
||||
action: 'um_rated'
|
||||
},
|
||||
success: function(){
|
||||
|
||||
}
|
||||
});
|
||||
jQuery(this).parent().text( jQuery( this ).data( 'rated' ) );
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user