mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-06 21:21:15 -07:00
Allow data to be passed for confirmAjaxCall
This commit is contained in:
parent
7e8fddc50c
commit
38ccd26b96
2 changed files with 6 additions and 3 deletions
|
@ -54,7 +54,7 @@ function showMsg(msg, loader, timeout, ms, error) {
|
|||
}
|
||||
}
|
||||
|
||||
function confirmAjaxCall(url, msg, loader_msg, callback) {
|
||||
function confirmAjaxCall(url, msg, data, loader_msg, callback) {
|
||||
$("#confirm-message").html(msg);
|
||||
$('#confirm-modal').modal();
|
||||
$('#confirm-modal').one('click', '#confirm-button', function () {
|
||||
|
@ -64,6 +64,9 @@ function confirmAjaxCall(url, msg, loader_msg, callback) {
|
|||
$.ajax({
|
||||
url: url,
|
||||
type: 'POST',
|
||||
cache: false,
|
||||
async: true,
|
||||
data: data,
|
||||
complete: function (xhr, status) {
|
||||
var result = $.parseJSON(xhr.responseText);
|
||||
var msg = result.message;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue