Files
EasySoft-ZenTaoPMS/module/backup/js/index.js
2017-05-12 11:28:22 +08:00

34 lines
796 B
JavaScript

$(function()
{
$('.backup').click(function()
{
$('#waitting .modal-body #backupType').html(backup);
$('#waitting').modal('show');
})
$('.restore').click(function()
{
url = $(this).attr('href');
bootbox.confirm(confirmRestore, function(result)
{
if(result)
{
$('#waitting .modal-body #backupType').html(restore);
$('#waitting').modal('show');
$.getJSON(url, function(response)
{
$('#waitting').modal('hide');
bootbox.alert(response.message);
});
}
else
{
return location.reload();
}
})
return false;
})
})