Icone spin identique sauvegarde et restauration

This commit is contained in:
Fred Tempez 2021-12-01 17:34:58 +01:00
parent 097b888323
commit f76f4b95c9
4 changed files with 10 additions and 26 deletions

View File

@ -12,7 +12,7 @@
$( document).ready(function() { $( document).ready(function() {
$("#configBackupForm").submit( function(e){ $("#configBackupForm").submit( function(e){
$("#configBackupSubmit").addClass("disabled").prop("disabled", true); //$("#configBackupSubmit").addClass("disabled").prop("disabled", true);
e.preventDefault(); e.preventDefault();
var url = "<?php echo helper::baseUrl() . $this->getUrl(0); ?>/backup"; var url = "<?php echo helper::baseUrl() . $this->getUrl(0); ?>/backup";
$.ajax({ $.ajax({
@ -29,6 +29,9 @@ $( document).ready(function() {
}, },
complete: function(){ complete: function(){
$("#configBackupSubmit").removeClass("disabled").prop("disabled", false); $("#configBackupSubmit").removeClass("disabled").prop("disabled", false);
$("#configBackupSubmit").removeClass("uniqueSubmission").prop("uniqueSubmission", false);
$("#configBackupSubmit span").removeClass("zwiico-spin animate-spin");
$("#configBackupSubmit span").addClass("zwiico-check zwiico-margin-right").text("Sauvegarder");
} }
}); });
}); });

View File

@ -3,14 +3,15 @@
<div class="col2"> <div class="col2">
<?php echo template::button('configBackupBack', [ <?php echo template::button('configBackupBack', [
'class' => 'buttonGrey', 'class' => 'buttonGrey',
'href' => helper::baseUrl() . 'config/advanced', 'href' => helper::baseUrl() . 'config',
'ico' => 'left', 'ico' => 'left',
'value' => 'Retour' 'value' => 'Retour'
]); ?> ]); ?>
</div> </div>
<div class="col2 offset8"> <div class="col2 offset8">
<?php echo template::submit('configBackupSubmit',[ <?php echo template::submit('configBackupSubmit',[
'value' => 'Sauvegarder' 'value' => 'Sauvegarder',
'uniqueSubmission' => true
]); ?> ]); ?>
</div> </div>
</div> </div>

View File

@ -23,25 +23,4 @@
.activeButton { .activeButton {
filter : brightness(125%); filter : brightness(125%);
} }
/** Div d'aide
.helpDisplayContainer {
position: sticky;
background-color: white;
display: none;
width: 100%;
padding: 10px 10px;
-webkit-box-shadow: 5px 5px 11px 0px #222222;
box-shadow: 5px 5px 11px 0px #222222;
border-radius: 5px;
z-index: 30;
}
/** Bouton d'aide et croix de fermeture
.zwiico-cancel, .helpDisplayButton {
cursor: pointer;
}
*/

View File

@ -10,7 +10,8 @@
</div> </div>
<div class="col2 offset8"> <div class="col2 offset8">
<?php echo template::submit('configRestoreSubmit',[ <?php echo template::submit('configRestoreSubmit',[
'value' => 'Restaurer' 'value' => 'Restaurer',
'uniqueSubmission' => true,
]); ?> ]); ?>
</div> </div>
</div> </div>