forked from ZwiiCMS-Team/ZwiiCMS
Icone spin identique sauvegarde et restauration
This commit is contained in:
parent
097b888323
commit
f76f4b95c9
@ -12,7 +12,7 @@
|
||||
|
||||
$( document).ready(function() {
|
||||
$("#configBackupForm").submit( function(e){
|
||||
$("#configBackupSubmit").addClass("disabled").prop("disabled", true);
|
||||
//$("#configBackupSubmit").addClass("disabled").prop("disabled", true);
|
||||
e.preventDefault();
|
||||
var url = "<?php echo helper::baseUrl() . $this->getUrl(0); ?>/backup";
|
||||
$.ajax({
|
||||
@ -29,6 +29,9 @@ $( document).ready(function() {
|
||||
},
|
||||
complete: function(){
|
||||
$("#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");
|
||||
}
|
||||
});
|
||||
});
|
||||
|
@ -3,14 +3,15 @@
|
||||
<div class="col2">
|
||||
<?php echo template::button('configBackupBack', [
|
||||
'class' => 'buttonGrey',
|
||||
'href' => helper::baseUrl() . 'config/advanced',
|
||||
'href' => helper::baseUrl() . 'config',
|
||||
'ico' => 'left',
|
||||
'value' => 'Retour'
|
||||
]); ?>
|
||||
</div>
|
||||
<div class="col2 offset8">
|
||||
<?php echo template::submit('configBackupSubmit',[
|
||||
'value' => 'Sauvegarder'
|
||||
'value' => 'Sauvegarder',
|
||||
'uniqueSubmission' => true
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -23,25 +23,4 @@
|
||||
|
||||
.activeButton {
|
||||
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;
|
||||
}
|
||||
*/
|
||||
}
|
@ -10,7 +10,8 @@
|
||||
</div>
|
||||
<div class="col2 offset8">
|
||||
<?php echo template::submit('configRestoreSubmit',[
|
||||
'value' => 'Restaurer'
|
||||
'value' => 'Restaurer',
|
||||
'uniqueSubmission' => true,
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user