Added jquery.unobtrusive-ajax for Ajax Helpers, much cleaner HTML and no jQuery work-around required.

Fix: Ajax Links are working again.
This commit is contained in:
Mark McDowall 2012-02-26 01:32:39 -08:00
commit 8b9cb7b8ff
22 changed files with 381 additions and 48 deletions

View file

@ -1,6 +1,6 @@
/* Click on row, show details */
$(document).on('click', '.seriesTable a, .dataTable a', function (event) {
if ($(this).hasClass('ajaxLink') || $(this).attr('onclick'))
if ($(this).attr('data-ajax') === "true")
return;
event.preventDefault();
@ -46,14 +46,6 @@ function fnFormatDetails(nTr) {
return aData["Details"];
}
//Create Image
function createImageAjaxLink(url, image, alt, title, classes) {
var html = '<a href="' + url + '" class="ajaxLink">' +
'<img class="' + classes + '" src="' + image + '" title="' + title + '" alt="' + alt + '" /></a>';
return html;
}
//Reload/Redraw the grid from the server (bServerSide == true)
function redrawGrid() {
oTable.fnDraw();