|
|
@@ -6,7 +6,7 @@
|
|
|
?>
|
|
|
<div style="margin-top:20px;">
|
|
|
|
|
|
- <a href="/submit.php?from=parametres-add-backup" style="position:absolute; right:25px; margin-top:-60px;">
|
|
|
+ <a href="/submit.php?from=parametres-add-backup" style="position:absolute; right:25px; margin-top:-60px;" onclick="loading()">
|
|
|
<button type="submit" class="btn btn-outline-success btn-sm">
|
|
|
<?php icon::getFont(["icon" => "bi bi-file-earmark-plus"]) ?> Créer un nouveau backup</button>
|
|
|
</a>
|
|
|
@@ -34,7 +34,7 @@
|
|
|
|
|
|
<script>
|
|
|
function downloadFile(value, row) {
|
|
|
- return '<form method="post" action="/submit.php">\n\
|
|
|
+ return '<form method="post" action="/submit.php" onsubmit="loading()">\n\
|
|
|
<input type="hidden" name="from" value="parametres-download-backup-zip">\n\
|
|
|
<input type="hidden" name="file" value="' + row.file + '">\n\
|
|
|
<button type="submit" style="border:none; background:none;" title="Télécharger le fichier : ' + row.file + '">' + row.file + '</button>\n\
|
|
|
@@ -45,7 +45,7 @@
|
|
|
<?php
|
|
|
if(!core::isDebug()) { ?>
|
|
|
if(index == 0){
|
|
|
- return '<form method="post" action="/submit.php">\n\
|
|
|
+ return '<form method="post" action="/submit.php" onsubmit="loading()">\n\
|
|
|
<input type="hidden" name="from" value="parametres-restore-backup-zip">\n\
|
|
|
<input type="hidden" name="file" value="' + row.file + '">\n\
|
|
|
<button type="submit" onclick="return confirm(\'Etes-vous certain de vouloir restaurer cette dernière version (données et fichiers) ? Les données actuelles seront perdues.\')" class="btn btn-outline-danger btn-sm">Restaurer</button>\n\
|
|
|
@@ -55,7 +55,7 @@
|
|
|
}
|
|
|
<?php
|
|
|
} else { ?>
|
|
|
- return '<form method="post" action="/submit.php">\n\
|
|
|
+ return '<form method="post" action="/submit.php" onsubmit="loading()">\n\
|
|
|
<input type="hidden" name="from" value="parametres-restore-backup-zip">\n\
|
|
|
<input type="hidden" name="file" value="' + row.file + '">\n\
|
|
|
<button type="submit" onclick="return confirm(\'Etes-vous certain de vouloir restaurer cette dernière version (données et fichiers) ? Les données actuelles seront perdues.\')" class="btn btn-outline-danger btn-sm">Restaurer</button>\n\
|
|
|
@@ -65,7 +65,7 @@
|
|
|
|
|
|
function deleteBackup(value, row, index) {
|
|
|
if(index != 0){
|
|
|
- return '<form method="post" action="/submit.php">\n\
|
|
|
+ return '<form method="post" action="/submit.php" onsubmit="loading()">\n\
|
|
|
<input type="hidden" name="from" value="parametres-delete-backup-zip">\n\
|
|
|
<input type="hidden" name="file" value="' + row.file + '">\n\
|
|
|
<button type="submit" onclick="return confirm(\'Etes-vous certain de vouloir supprimer ce backup?\')" class="btn btn-outline-warning btn-sm">Supprimer</button>\n\
|