Compare commits

...

2 Commits

Author SHA1 Message Date
johan a39fbeb826 Merge branch 'master' of git.rezo-rm.fr:BDEMetz/bde-liste 3 years ago
johan b03f1642f0 tra 3 years ago
  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() { function is_locked() {
@ -790,9 +790,9 @@ function updateDemandes() {
success: function(data) { success: function(data) {
if(data.success) { if(data.success) {
if(data.state == "open") { if(data.state == "open") {
$('#login-form').html(saved_form); $('#demande-form').html(saved_form);
} else { } 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