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
|
@ -42,21 +42,4 @@
|
|||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
//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;
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue