mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07: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:
parent
4a55d08130
commit
8b9cb7b8ff
22 changed files with 381 additions and 48 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue