I have this short and simple code below but ajaxSuccess didn't get called. Any idea why?
$.ajax({
type: "GET",
async: true,
url: "/userprofile",
data: {
'username': username
},
error: function (xhr, status, error){
}
});
$().ajaxSuccess(function(event, request, settings) {
alert("OK");
});