johan 3 years ago
parent
commit
b03f1642f0
  1. 6
      static/js/main.js

6
static/js/main.js

@ -767,7 +767,7 @@ $('#demande-button').click(function () {
});
});
var saved_form = $('#login-form').html();
var saved_form = $('#demande-form').html();
function is_locked() {
@ -790,9 +790,9 @@ function updateDemandes() {
success: function(data) {
if(data.success) {
if(data.state == "open") {
$('#login-form').html(saved_form);
$('#demande-form').html(saved_form);
} else {
$('#login-form').html('<h2>Les commandes sont fermés pour le moment mais on revient vite !</h2>');
$('#demande-form').html('<h2>Les commandes sont fermés pour le moment mais on revient vite !</h2>');
}
}
}

Loading…
Cancel
Save