AJAX button with success callback. (Titan Framework)

So now I want to refresh the page using a success callback. I’ve
enqueued a simple script via admin_enqueue_scripts:

I believe in that script, you need a global JS function named ajax_success_refresh, as in the following example:

// This is the 'success_callback' for the AJAX action of 'yyy_reset_security_logs'.
function ajax_success_refresh() {
    window.location.reload( false );
}

Hint: Since it’s a global function, you should make the function name as unique as possible.