mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-28 13:01:28 +02:00
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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user