mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-27 04:21:27 +02:00
Ajax Links are all handled by jQuery now, no more MvcAjax handlers.
This commit is contained in:
@@ -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;
|
||||
});
|
Reference in New Issue
Block a user