SAAS-1041 - add confirmation window when deleting a user
This commit is contained in:
parent
0722225211
commit
69293703f2
|
@ -43,10 +43,16 @@ function rowClickCallback(row_id){
|
||||||
}});
|
}});
|
||||||
}
|
}
|
||||||
|
|
||||||
function removeUserCallback(row_id, nRow){
|
function removeUserCallback(row_id, nRow) {
|
||||||
$.ajax({ url: baseUrl+'User/remove-user/id/'+ row_id +'/format/json', dataType:"text", success:function(data){
|
if (confirm($.i18n._("Are you sure you want to delete this user?"))) {
|
||||||
var o = $('#users_datatable').dataTable().fnDeleteRow(nRow);
|
$.ajax({
|
||||||
}});
|
url: baseUrl + 'User/remove-user/id/' + row_id + '/format/json',
|
||||||
|
dataType: "text",
|
||||||
|
success: function (data) {
|
||||||
|
var o = $('#users_datatable').dataTable().fnDeleteRow(nRow);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function rowCallback( nRow, aData, iDisplayIndex ){
|
function rowCallback( nRow, aData, iDisplayIndex ){
|
||||||
|
|
Loading…
Reference in New Issue