Ajax Links are all handled by jQuery now, no more MvcAjax handlers.

This commit is contained in:
Mark McDowall 2012-02-26 00:36:47 -08:00
commit 4a55d08130
14 changed files with 37 additions and 37 deletions

View file

@ -42,4 +42,21 @@
}
});
});
});
//Make .ajaxLink use jQuery Ajax for the request
$(document).on('click', '.ajaxLink', function (event) {
event.preventDefault();
var onSuccess = $(this).attr('onsuccess');
$.ajax({
url: this.href,
cache: false,
success: function () {
if (onSuccess) {
window[onSuccess]();
}
}
});
return false;
});